Fix copyright lines
[folly.git] / folly / fibers / FiberManagerMap.cpp
index d96fb82e4aa4196027f26de4c213391cee63cc50..9d8a79f2920963cba8e84c0c4140c165fe088e4d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2015-present Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -63,11 +63,12 @@ class GlobalCache {
     auto& fmPtrRef = map_[&evb];
 
     if (!fmPtrRef) {
-      auto loopController = make_unique<EventBaseLoopControllerT<EventBaseT>>();
+      auto loopController = std::make_unique<EventBaseLoopController>();
       loopController->attachEventBase(evb);
       evb.runOnDestruction(new EventBaseOnDestructionCallback<EventBaseT>(evb));
 
-      fmPtrRef = make_unique<FiberManager>(std::move(loopController), opts);
+      fmPtrRef =
+          std::make_unique<FiberManager>(std::move(loopController), opts);
     }
 
     return *fmPtrRef;
@@ -76,7 +77,7 @@ class GlobalCache {
   std::unique_ptr<FiberManager> eraseImpl(EventBaseT& evb) {
     std::lock_guard<std::mutex> lg(mutex_);
 
-    DCHECK_EQ(1, map_.count(&evb));
+    DCHECK_EQ(map_.count(&evb), 1u);
 
     auto ret = std::move(map_[&evb]);
     map_.erase(&evb);
@@ -190,5 +191,5 @@ FiberManager& getFiberManager(
     const FiberManager::Options& opts) {
   return ThreadLocalCache<VirtualEventBase>::get(evb, opts);
 }
-}
-}
+} // namespace fibers
+} // namespace folly