]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/ceph_context: don't import std namespace
authorSage Weil <sage@redhat.com>
Fri, 5 Dec 2014 22:21:08 +0000 (14:21 -0800)
committerJason Dillaman <dillaman@redhat.com>
Fri, 24 Jul 2015 13:59:56 +0000 (09:59 -0400)
This was broken by 7fed5dee4f96a83d1d6914f6fc0895bba2d15b99

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 9029813b2784fe71879b1b7684855415b4c7566b)

src/common/ceph_context.h

index e7b8b6c828eefa836f3d91ca471666bff868783a..7241c85583da3cf82443e757ce19347da7de84af 100644 (file)
@@ -18,7 +18,6 @@
 #include <iostream>
 #include <stdint.h>
 #include <string>
-using namespace std;
 
 #include "include/buffer.h"
 #include "include/atomic.h"
@@ -109,7 +108,7 @@ public:
                  bufferlist *out);
 
   template<typename T>
-  void lookup_or_create_singleton_object(T*& p, const string &name) {
+  void lookup_or_create_singleton_object(T*& p, const std::string &name) {
     ceph_spin_lock(&_associated_objs_lock);
     if (!_associated_objs.count(name)) {
       p = new T(this);
@@ -156,7 +155,7 @@ private:
   ceph::HeartbeatMap *_heartbeat_map;
 
   ceph_spinlock_t _associated_objs_lock;
-  map<string, AssociatedSingletonObject*> _associated_objs;
+  std::map<std::string, AssociatedSingletonObject*> _associated_objs;
 
   // crypto
   CryptoNone *_crypto_none;