]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: Remove straggling `using namespace std` from headers
authorAdam C. Emerson <aemerson@redhat.com>
Sat, 22 Jan 2022 00:57:34 +0000 (19:57 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Sat, 22 Jan 2022 03:28:35 +0000 (22:28 -0500)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/mgr/ActivePyModules.h
src/mgr/TTLCache.h

index 2547c2565386c3fa919a684e59c55a86d4052b95..0469c4755e9e024a56d331b1981bf9f15b853672 100644 (file)
@@ -56,14 +56,14 @@ class ActivePyModules
   Objecter &objecter;
   Client   &client;
   Finisher &finisher;
-  TTLCache<string, PyObject*> ttl_cache;
+  TTLCache<std::string, PyObject*> ttl_cache;
 public:
   Finisher cmd_finisher;
 private:
   DaemonServer &server;
   PyModuleRegistry &py_module_registry;
 
-  map<std::string,ProgressEvent> progress_events;
+  std::map<std::string,ProgressEvent> progress_events;
 
   mutable ceph::mutex lock = ceph::make_mutex("ActivePyModules::lock");
 
index a6d5ddf2e2d0359911dce5794fb253d87753e693..d29b787bbf6956372bd2ce9b60ac0a028023deba 100644 (file)
@@ -10,8 +10,6 @@
 
 #include "PyUtil.h"
 
-using namespace std;
-
 template <class Key, class Value> class Cache {
  private:
   std::atomic<uint64_t> hits, misses;
@@ -20,7 +18,7 @@ template <class Key, class Value> class Cache {
   unsigned int capacity;
   Cache(unsigned int size = UINT16_MAX) : hits{0}, misses{0}, capacity{size} {};
   std::map<Key, Value> content;
-  std::vector<string> allowed_keys = {"osd_map", "pg_dump", "pg_stats"};
+  std::vector<std::string> allowed_keys = {"osd_map", "pg_dump", "pg_stats"};
 
   void mark_miss() {
     misses++;