]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
[cleanup] Remove namespace using directives for std
authorShinobu Kinjo <shinobu@redhat.com>
Mon, 27 Nov 2017 04:46:58 +0000 (13:46 +0900)
committerShinobu Kinjo <shinobu@redhat.com>
Mon, 27 Nov 2017 04:46:58 +0000 (13:46 +0900)
Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
86 files changed:
src/auth/KeyRing.cc
src/ceph_fuse.cc
src/ceph_mds.cc
src/ceph_mon.cc
src/ceph_syn.cc
src/client/SyntheticClient.cc
src/client/barrier.h
src/common/Readahead.cc
src/common/address_helper.cc
src/common/blkdev.cc
src/common/ceph_json.cc
src/common/cmdparse.cc
src/common/dns_resolve.cc
src/crush/CrushWrapper.h
src/erasure-code/ErasureCode.cc
src/erasure-code/jerasure/ErasureCodeJerasure.cc
src/include/Distribution.h
src/include/filepath.h
src/include/rangeset.h
src/include/types.h
src/key_value_store/kv_flat_btree_async.cc
src/key_value_store/kv_flat_btree_async.h
src/key_value_store/kvs_arg_types.h
src/krbd.cc
src/mds/MDCache.cc
src/mds/Server.cc
src/mgr/OSDHealthMetricCollector.cc
src/mon/AuthMonitor.h
src/mon/Elector.h
src/mon/LogMonitor.h
src/mon/MDSMonitor.h
src/mon/MonmapMonitor.h
src/mon/OSDMonitor.h
src/msg/Message.cc
src/msg/Messenger.h
src/msg/async/AsyncConnection.h
src/msg/async/AsyncMessenger.h
src/msg/simple/SimpleMessenger.h
src/os/filestore/FileStore.h
src/osd/OSD.h
src/osd/OSDMap.h
src/osd/PG.h
src/osd/PGLog.h
src/osdc/Objecter.h
src/rbd_replay/PendingIO.cc
src/rbd_replay/Replayer.cc
src/rbd_replay/actions.cc
src/rbd_replay/rbd-replay.cc
src/rgw/rgw_acl.cc
src/rgw/rgw_acl_s3.cc
src/rgw/rgw_acl_swift.cc
src/rgw/rgw_admin.cc
src/rgw/rgw_bucket.cc
src/rgw/rgw_cache.cc
src/rgw/rgw_cors.cc
src/rgw/rgw_cors_s3.cc
src/rgw/rgw_es_main.cc
src/rgw/rgw_es_query.cc
src/rgw/rgw_gc.cc
src/rgw/rgw_jsonparser.cc
src/rgw/rgw_lc.cc
src/rgw/rgw_lc_s3.cc
src/rgw/rgw_main.cc
src/rgw/rgw_multi.cc
src/rgw/rgw_multi_del.cc
src/rgw/rgw_multiparser.cc
src/rgw/rgw_object_expirer.cc
src/rgw/rgw_object_expirer_core.cc
src/rgw/rgw_op.cc
src/rgw/rgw_orphan.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_reshard.cc
src/rgw/rgw_role.cc
src/rgw/rgw_sync_trace.cc
src/rgw/rgw_torrent.cc
src/rgw/rgw_usage.cc
src/rgw/rgw_user.cc
src/rgw/rgw_website.cc
src/rgw/rgw_xml.cc
src/tools/ceph_kvstore_tool.cc
src/tools/ceph_monstore_tool.cc
src/tools/ceph_objectstore_tool.cc
src/tools/ceph_osdomap_tool.cc
src/tools/crushtool.cc
src/tools/monmaptool.cc
src/tools/osdmaptool.cc

index aac835ed3af325bc7e771a33a08ace725279a457..06d5a291a1496aec19a0ff51bc9238eea9006e8b 100644 (file)
@@ -28,8 +28,6 @@
 #undef dout_prefix
 #define dout_prefix *_dout << "auth: "
 
-using namespace std;
-
 int KeyRing::from_ceph_context(CephContext *cct)
 {
   const md_config_t *conf = cct->_conf;
index 4416e9d3c588daaf869096879f1a469393154345..cb2715299af16fe5bf08a8011f510ba51fb90710 100644 (file)
@@ -16,7 +16,6 @@
 #include <sys/utsname.h>
 #include <iostream>
 #include <string>
-using namespace std;
 
 #include "common/config.h"
 #include "common/errno.h"
index acce67289aff5851147c15286bbfd2e0724f766d..536edca41fc056d573fab7cbcf3db410ef6f7cf3 100644 (file)
@@ -19,7 +19,6 @@
 
 #include <iostream>
 #include <string>
-using namespace std;
 
 #include "include/ceph_features.h"
 #include "include/compat.h"
index 1792facf650cc94214272a09c0722a796085e62d..9139e8b83ef1004b0a4261fb9bdf6f94cb3d70dc 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <iostream>
 #include <string>
-using namespace std;
 
 #include "common/config.h"
 #include "include/ceph_features.h"
index 2a6419b10fdf5101c761819bd5c2b7f7be66a315..490a30d6e5b88b5eb69ee18a9ee4b5d8a85390d2 100644 (file)
@@ -15,7 +15,6 @@
 #include <sys/stat.h>
 #include <iostream>
 #include <string>
-using namespace std;
 
 #include "common/config.h"
 
index 88574e07a202cdf0fd4b3f5fc0a38d391bd9bec4..89f8498d88885e0306a754d99bf8e31bb2fbe96e 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <iostream>
 #include <sstream>
-using namespace std;
 
 
 #include "common/config.h"
index 8ed3040fab5a760c928558bd5a6c03aa74d9d81b..f94a48acd05c328f84f2d367a915ddae426b9970 100644 (file)
@@ -25,7 +25,6 @@ class Client;
 
 typedef boost::icl::interval<uint64_t>::type barrier_interval;
 
-using namespace std;
 
 /*
  * we keep count of uncommitted writes on the inode, so that
index 9318bbf545ebd2171a4a17313221f05a8ec5f2d3..647b7ed2430aa757984e0990e5bf63145e7452df 100644 (file)
@@ -3,7 +3,6 @@
 
 #include "Readahead.h"
 
-using namespace std;
 
 Readahead::Readahead()
   : m_trigger_requests(10),
index 8f625f8db4d1fed50f0be9ae0607668aa3636760..09ec805bce27a8a56dcfa65bdb84be871c7896b5 100644 (file)
@@ -10,7 +10,6 @@
 #include "common/address_helper.h"
 #include "boost/regex.hpp"
 
-using namespace std;
 
 // decode strings like "tcp://<host>:<port>"
 int entity_addr_from_url(entity_addr_t *addr /* out */, const char *url)
index fa518e2f18a1a0ba18e5d0679040c86eb52682ae..8d524818e89e4bcf56ffb4431e325044e92c1e0b 100644 (file)
@@ -17,7 +17,6 @@
 #include "include/uuid.h"
 #include "blkdev.h"
 
-using namespace std;
 
 #ifdef __linux__
 #include <linux/fs.h>
index e326fdebcf3267d64ed8524facf1a5eae54b2817..29b551e8fb06877c45dd4a535840b7ffb3509197 100644 (file)
@@ -5,7 +5,6 @@
 #include <fstream>
 #include <include/types.h>
 
-using namespace std;
 using namespace json_spirit;
 
 #define dout_subsys ceph_subsys_rgw
index 9a873f5144216e8cde871a4aa6c98e46eda246b7..9ce9ff6a54075f4a0af020a05335954bb6cd37bc 100644 (file)
@@ -15,7 +15,6 @@
 #include "json_spirit/json_spirit.h"
 #include "common/debug.h"
 
-using namespace std;
 
 /**
  * Given a cmddesc like "foo baz name=bar,type=CephString",
index 13f06548e84d040a9ab17da1beb06dfb24430d6d..f3594b0041f78ece3113a06274d5c9e0572013f9 100644 (file)
@@ -20,7 +20,6 @@
 
 #define dout_subsys ceph_subsys_
 
-using namespace std;
 
 namespace ceph {
 
index d2fc48586011c3367036929a7f950c6fe4d56344..8e4e9336783c22ccf45b6a48d0224ed647ef27b5 100644 (file)
@@ -52,7 +52,6 @@ inline static void decode(crush_rule_step &s, bufferlist::iterator &p)
   ::decode(s.arg2, p);
 }
 
-using namespace std;
 class CrushWrapper {
 public:
   // magic value used by OSDMap for a "default" fallback choose_args, used if
index 855147d954e01fc73c6f5defe3d3dc57179dbb59..fa5d8e29a4e5b82a14add0703fdd7b65f48a3219 100644 (file)
@@ -25,7 +25,6 @@
 #include "crush/CrushWrapper.h"
 #include "osd/osd_types.h"
 
-using namespace std;
 
 const unsigned ErasureCode::SIMD_ALIGN = 32;
 
index 599073eb3f73e59d482e77960b145d36e197502f..0369dd87ee5c51b607a6d733b6cfea6dd62f969e 100644 (file)
@@ -18,7 +18,6 @@
 #include "common/debug.h"
 #include "ErasureCodeJerasure.h"
 
-using namespace std;
 
 extern "C" {
 #include "jerasure.h"
index a1be0019cc011e28329cea5dace61439de5351b8..e4f0b30b1299d199461a2fead3ab608e79c43569 100644 (file)
@@ -17,7 +17,6 @@
 #define CEPH_DISTRIBUTION_H
 
 #include <vector>
-using namespace std;
 
 class Distribution {
   vector<float> p;
index b4c33070c9ff26110f6e68137ec7fddb9d213fc6..1e28cffd0a15650f8f65798a6ca5b98460fc076b 100644 (file)
@@ -26,7 +26,6 @@
 #include <iosfwd>
 #include <string>
 #include <vector>
-using namespace std;
 
 #include "buffer.h"
 #include "encoding.h"
index 547af26e2b6654f3c9e71c0f280cd22c191631bf..51c1c840551d82c0280da32751220390601e1a5e 100644 (file)
@@ -23,7 +23,6 @@
  */
 
 #include <map>
-using namespace std;
 
 //typedef int T;
 
index c68f9e10ebdcaefdf6eb5e36c44164326800d1b4..99fad9ced8ee83510c09ed1cbec7a3873d8ac3d5 100644 (file)
@@ -59,7 +59,6 @@ extern "C" {
 #include <iostream>
 #include <iomanip>
 
-using namespace std;
 
 #include "include/unordered_map.h"
 
index 5d3c3829531fcaf733524654ed8b6474d9cb72ef..25dc5c1f6b7e6ea092c68e26391bb57cc7ee55d3 100644 (file)
@@ -31,7 +31,6 @@
 #include <stdlib.h>
 #include <iterator>
 
-using namespace std;
 using ceph::bufferlist;
 
 bool index_data::is_timed_out(utime_t now, utime_t timeout) const {
index f16ba6d9a99e479d3d09635e84774e751ac8107a..2b3761850e9595c570188c9675d40ba3426b6798 100644 (file)
@@ -32,7 +32,6 @@
 #include <sstream>
 #include <stdarg.h>
 
-using namespace std;
 using ceph::bufferlist;
 
 enum {
index 4bd32f02aeb35514f76af4e3b739a46ce1f5cb77..98063621e38e5e664ad7704d92467dc1cd7f97c0 100644 (file)
@@ -13,7 +13,6 @@
 #include "include/encoding.h"
 #include "key_value_store/kv_flat_btree_async.h"
 
-using namespace std;
 using ceph::bufferlist;
 
 struct assert_size_args {
index 523c3db1f5f6dfe3b09fecc0c22580afd569bea8..9841135155f7dd3d37f27dcea7743bb77cd7ed0b 100644 (file)
@@ -40,7 +40,6 @@
 #include <blkid/blkid.h>
 #include <libudev.h>
 
-using namespace std;
 
 const static int POLL_TIMEOUT=120000;
 
index f180fa8c472a82340d7245bd1a1cebc7fc7ed30d..9fe1fa15e00529095f59dcd07cea9a2f90dc600b 100644 (file)
 
 #include "perfglue/heap_profiler.h"
 
-using namespace std;
 
 #include "common/config.h"
 #include "include/assert.h"
index e72d8a7504e351a5852de0d79452950d9bacfb29..56f0b86c16d37ec7859ecd62e8ff3ea03083cf24 100644 (file)
@@ -61,7 +61,6 @@
 
 #include <list>
 #include <iostream>
-using namespace std;
 
 #include "common/config.h"
 
index 0b3d4180d7f489c09bf39ad8c6f259520e31b8d6..d86ad07be0637413c3e391859611b92947b5f289 100644 (file)
@@ -5,7 +5,6 @@
 #include "OSDHealthMetricCollector.h"
 
 
-using namespace std;
 
 ostream& operator<<(ostream& os,
                     const OSDHealthMetricCollector::DaemonKey& daemon) {
index 8f3ca30245b026ac25a08cae55345ef17c83ba49..777f2e80361d3b2519f14580fe69385c6430bcbc 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <map>
 #include <set>
-using namespace std;
 
 #include "include/ceph_features.h"
 #include "include/types.h"
index b9e6310b5b881e0103a0669fefc27d702a1b7e8d..4c005c965fe9901de512d90a8c97709243775d3a 100644 (file)
@@ -17,7 +17,6 @@
 #define CEPH_MON_ELECTOR_H
 
 #include <map>
-using namespace std;
 
 #include "include/types.h"
 #include "include/Context.h"
index d2f082596c5e45fdc34c6078298b10569bc0eed5..7c8043689ec0af3e4930885ede4b5e6da02cf321 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <map>
 #include <set>
-using namespace std;
 
 #include "include/types.h"
 #include "PaxosService.h"
index 840f4e469a524f59a9a8972cdc7c0df7e7fd7b30..c59858a092bcb52274c7951c1f586391078f2504 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <map>
 #include <set>
-using namespace std;
 
 #include "include/types.h"
 #include "mds/FSMap.h"
index e3e01173b6ee58b9190aa7c8c61b533e6ab6fc68..57e1fd6dbf222215b847c81851448b6893de770d 100644 (file)
@@ -22,7 +22,6 @@
 #include <map>
 #include <set>
 
-using namespace std;
 
 #include "include/types.h"
 #include "msg/Messenger.h"
index e2bc85fba628a0d639b3ec12d1659581c14b085d..96870c0ab77bdb43fd5bb8f22000dab8b6668081 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <map>
 #include <set>
-using namespace std;
 
 #include "include/types.h"
 #include "common/simple_cache.hpp"
index fb30526e48ab8b50f2503b8e8770e8e75354672a..8cc5b8e1fc34b682e99fc57ceb3728368e40b491 100644 (file)
@@ -7,7 +7,6 @@
 #endif
 
 #include <iostream>
-using namespace std;
 
 #include "include/types.h"
 
index c6dbcc17694d4e4ea594b4612313f753885bda55..eb3541780364b4e240662c55eb4cf1e3918957f0 100644 (file)
@@ -18,7 +18,6 @@
 #define CEPH_MESSENGER_H
 
 #include <map>
-using namespace std;
 
 #include "Message.h"
 #include "Dispatcher.h"
index 4ad5ddbed11fc65bb01aaab87ca15c2554238523..a8c4ae9c3f11f217c0475347d63d7aa45cf20327 100644 (file)
@@ -23,7 +23,6 @@
 #include <list>
 #include <mutex>
 #include <map>
-using namespace std;
 
 #include "auth/AuthSessionHandler.h"
 #include "common/ceph_time.h"
index 533b54f51a3ebc08d31cec63963079b8a234bf83..a07ed4c69c3b26b997bc2cd3a145b0ede3b1d9c4 100644 (file)
@@ -19,7 +19,6 @@
 
 #include <map>
 #include <mutex>
-using namespace std;
 
 #include "include/types.h"
 #include "include/xlist.h"
index 5e27182dd0fd8c08d42ae61d99989a0dd46e1373..93597a70a5b887a6532eea132a52d339cec1468e 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <list>
 #include <map>
-using namespace std;
 
 #include "include/types.h"
 #include "include/xlist.h"
index 131f98f13f39bda65c81754b3dd44760c20b94fd..d7a4196645a4496a29124d579ba61278aaf95d19 100644 (file)
@@ -23,7 +23,6 @@
 #include <atomic>
 #include <fstream>
 
-using namespace std;
 
 #include <boost/scoped_ptr.hpp>
 
index bc20926a590d1ca831c7b19fe98630fdaec9ee8c..15eb7a8748bce009baf272f0b3150642f5f1393c 100644 (file)
@@ -47,7 +47,6 @@
 #include <map>
 #include <memory>
 #include "include/memory.h"
-using namespace std;
 
 #include "include/unordered_map.h"
 
index 557c8bdcb693ba0dff8768212c93bf5f21fb7dbc..948d0132af1627e45b17411551ecad47d87b42a3 100644 (file)
@@ -35,7 +35,6 @@
 #include <map>
 #include "include/memory.h"
 #include "include/btree_map.h"
-using namespace std;
 
 // forward declaration
 class CephContext;
index 37cc3e9b9838698b13245bdefc5d616c5f8e95b5..55035a9ba302c96bbffa0390c772f3955bd01866 100644 (file)
@@ -50,7 +50,6 @@
 #include <stack>
 #include <string>
 #include <tuple>
-using namespace std;
 
 //#define DEBUG_RECOVERY_OIDS   // track set of recovering oids explicitly, to find counting bugs
 //#define PG_DEBUG_REFS    // track provenance of pg refs, helpful for finding leaks
index 4e8e084a2ad312d2d4985632c4b3a604ba7be8ce..f3e48455b9d29e64beb8007f695ccb3829269aa6 100644 (file)
@@ -21,7 +21,6 @@
 #include "osd_types.h"
 #include "os/ObjectStore.h"
 #include <list>
-using namespace std;
 
 #define PGLOG_INDEXED_OBJECTS          (1 << 0)
 #define PGLOG_INDEXED_CALLER_OPS       (1 << 1)
index 9ec9e60637221e6bf79793e96c0324fd05596604..1d0cce885976f75c5efe7831b76b61a9b54bb4e2 100644 (file)
@@ -42,7 +42,6 @@
 #include "messages/MOSDOp.h"
 #include "osd/OSDMap.h"
 
-using namespace std;
 
 class Context;
 class Messenger;
index bdf93c974f338ab89bbeb2b8436ac9101c9c50ad..089a60aa53f029c1cca501e7cc86cd671043c758 100644 (file)
@@ -17,7 +17,6 @@
 
 #define dout_context g_ceph_context
 
-using namespace std;
 using namespace rbd_replay;
 
 extern "C"
index ca1eaba84416fd74a4d4ad009a35b7be104b33e0..e2014c3a8587554c257cdabe5b9e945778cb0d43 100644 (file)
@@ -25,7 +25,6 @@
 
 #define dout_context g_ceph_context
 
-using namespace std;
 using namespace rbd_replay;
 
 namespace {
index ffb996dc0a77361ae6cbad8b25b48e4da4176585..3c6baf7ab5d0f9797fce89a159e5bda8b5a3f2ea 100644 (file)
@@ -21,7 +21,6 @@
 #define dout_context g_ceph_context
 
 using namespace rbd_replay;
-using namespace std;
 
 namespace {
 
index 274431c19f9415aefcaa8552681fd7d0217006a4..ed174a43050f6e61671a2333c30f394bae32fd19 100644 (file)
@@ -21,7 +21,6 @@
 #include "ImageNameMap.hpp"
 
 
-using namespace std;
 using namespace rbd_replay;
 
 
index 0f246706abbad0f0db7a7a2ffe25015b08028e12..cb89fa0d41275bec31bffb751a41c67820c909b9 100644 (file)
@@ -15,7 +15,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 void RGWAccessControlList::_add_grant(ACLGrant *grant)
 {
index eec7db6898a6a9226013fdb1cec166a8db9e21b5..43a961d18606be38a56d47a9caaed7eb607ca016 100644 (file)
@@ -13,7 +13,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 
 #define RGW_URI_ALL_USERS      "http://acs.amazonaws.com/groups/global/AllUsers"
index 71f32a69528fb3921669a0085c1f47160111c9b2..d5b81bfd1e9883ecb05049e6cb991fe0b704cc83 100644 (file)
@@ -14,7 +14,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 #define SWIFT_PERM_READ  RGW_PERM_READ_OBJS
 #define SWIFT_PERM_WRITE RGW_PERM_WRITE_OBJS
index 0bf0e0da9044cb44e7364105327e9b3201687b6f..1110ea9cb4add8e546d1e2b1c0dd9daf754f2866 100644 (file)
@@ -45,7 +45,6 @@
 #include "rgw_role.h"
 #include "rgw_reshard.h"
 
-using namespace std;
 
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_rgw
index 1c4ceda7033f37bc5bdf9022f074f69318a3c611..b2ee30078c33ce9d9ef494f323d8fea4815e0824 100644 (file)
@@ -34,7 +34,6 @@
 
 #define BUCKET_TAG_TIMEOUT 30
 
-using namespace std;
 
 static RGWMetadataHandler *bucket_meta_handler = NULL;
 static RGWMetadataHandler *bucket_instance_meta_handler = NULL;
index 31aff871165a64d959a33961656a92bd705bbb40..be941e139576c87fe1dc6736408d89ee855a817a 100644 (file)
@@ -7,7 +7,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 int ObjectCache::get(string& name, ObjectCacheInfo& info, uint32_t mask, rgw_cache_entry_info *cache_info)
 {
index 3081dc00d64bb2c01168bc82ad1507e3abfeb858..f99abaad8f086d5c611eae0c66f1233eed4d22a8 100644 (file)
@@ -27,7 +27,6 @@
 
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_rgw
-using namespace std;
 
 void RGWCORSRule::dump_origins() {
   unsigned num_origins = allowed_origins.size();
index e2ecdbc7191f9ca3b34327afe00fb1e58b71794e..95d57e882e3bff4afbaabc9e605bc87e0fededb5 100644 (file)
@@ -25,7 +25,6 @@
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 void RGWCORSRule_S3::to_xml(XMLFormatter& f) {
 
index 43145835b5831161f4592b0e3bf54a80f92e0978..91a57571f22721c0cffb5c7ac63f9b4235a466b9 100644 (file)
@@ -9,7 +9,6 @@
 #include "common/ceph_json.h"
 #include "rgw_es_query.h"
 
-using namespace std;
 
 int main(int argc, char *argv[])
 {
index 5fb943f407d15a6365dda142e922478441621d1b..b30435c09df5cacb4e14b1acc74a3dec6af51f7d 100644 (file)
@@ -8,7 +8,6 @@
 #include "rgw_common.h"
 #include "rgw_es_query.h"
 
-using namespace std;
 
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_rgw
index 216477e3462db404fa388d09f3eab0e0b6521a02..088196178e662248952ff6c851a6a6c8f0362552 100644 (file)
@@ -13,7 +13,6 @@
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 using namespace librados;
 
 static string gc_oid_prefix = "gc";
index b4b709ce8c71ff325f8dce513f29d1e279f84c23..df5201406f9ea40568f11527564c7f525ac786d2 100644 (file)
@@ -16,7 +16,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 void dump_array(JSONObj *obj)
 {
index a742ca309b4e29d16bfe02a764f9cee4fd0f2759..de0791a79ff6c1b5b1d431284a200411f60276f3 100644 (file)
@@ -24,7 +24,6 @@ const char* LC_STATUS[] = {
       "COMPLETE"
 };
 
-using namespace std;
 using namespace librados;
 
 bool LCRule::valid()
index b05b8a1ac0d1aaaaa25ca2568a3806de982a25b5..d2f02370c0121707612206cdcf42a70e302927b9 100644 (file)
@@ -11,7 +11,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 bool LCExpiration_S3::xml_end(const char * el) {
   LCDays_S3 *lc_days = static_cast<LCDays_S3 *>(find_first("Days"));
index b24dec27f8ef887f6884a117764c9b46120c9da3..60168778f91722eac95a7c469be52ce7fc334b9e 100644 (file)
@@ -72,7 +72,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 static sig_t sighandler_alrm;
 
index d455f9b8f8fb13a8b3757990bc908e5e364505d4..27d35115dccee59b22c9b2f5647e716c95f6ee41 100644 (file)
@@ -14,7 +14,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 
 bool RGWMultiPart::xml_end(const char *el)
index b9be951dd3489a53b1c04582b72e2583c0acc022..2faa8069713228f08c823cb9d5fc1b3cb0a7d665 100644 (file)
@@ -12,7 +12,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 
 bool RGWMultiDelObject::xml_end(const char *el)
index 48a64b4544f3234c23daccd62a12aff5e081a3ea..63d70d729f67b527821f00827ecabdd611a854ef 100644 (file)
@@ -12,7 +12,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
                                   
 int main(int argc, char **argv) {
   RGWMultiXMLParser parser;
index 21b8f9f299948cc7116c511b66f70fecf9c3dd33..760f8fffef28b8a3c27fce89d8d70b79bc2ce6dd 100644 (file)
@@ -6,7 +6,6 @@
 #include <sstream>
 #include <string>
 
-using namespace std;
 
 #include "auth/Crypto.h"
 
index fb0444186c9795c37479580ccaf93b796cc893b2..fde860fd72c3fc218dabab200923648356cdab67 100644 (file)
@@ -6,7 +6,6 @@
 #include <sstream>
 #include <string>
 
-using namespace std;
 
 #include "auth/Crypto.h"
 
index 73aa0ed543716abb80530aa9b728f68431b8423f..e535bb4a4ee0b4b9fa30f02345d803df62ae050d 100644 (file)
@@ -55,7 +55,6 @@
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 using namespace librados;
 using ceph::crypto::MD5;
 using boost::optional;
index 05552782f149d61e3ad75dad0ea65cc169bfce5e..d071777473164dd7017796c9ebff0b758559a5b8 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <string>
 
-using namespace std;
 
 #include "common/config.h"
 #include "common/Formatter.h"
index e21d4bbca46608f8f2d9323a7e18e021662ae622..1d020bb2d03fdcf807b73f9b072329bb614bcfc8 100644 (file)
@@ -79,7 +79,6 @@ using namespace librados;
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 static string notify_oid_prefix = "notify";
 static string *notify_oids = NULL;
index bc10b9c25c220d12c6ca9a31e60299d314df4148..71726634a5a227f5c8c3fa6095f44795d986152d 100644 (file)
@@ -18,7 +18,6 @@ const string reshard_oid_prefix = "reshard.";
 const string reshard_lock_name = "reshard_process";
 const string bucket_instance_lock_name = "bucket_instance_lock";
 
-using namespace std;
 
 #define RESHARD_SHARD_WINDOW 64
 #define RESHARD_MAX_AIO 128
index 732b49c7431ed99c2a4a2aed0227593aca6cd010..2b89e4f231d0ad2b76f343b733ed049efd594b9a 100644 (file)
@@ -18,7 +18,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 const string RGWRole::role_name_oid_prefix = "role_names.";
 const string RGWRole::role_oid_prefix = "roles.";
index d6ad90605237fb3f77059ed9ba907d9a6c677dc6..d4298f691eebe54d88aca5a20c97ca8726668fd1 100644 (file)
@@ -9,7 +9,6 @@
 #include "rgw_sync_trace.h"
 #include "rgw_rados.h"
 
-using namespace std;
 
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_rgw_sync
index ad85148b3308e7b6ce30829d41b9e66da35aca62..cff77b3d981cd053c79a08095eab57b9e718b734 100644 (file)
@@ -9,7 +9,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 using ceph::crypto::MD5;
 using namespace librados;
 using namespace boost;
index 03a4ab4de0881f08da048d44e279e5458aa6400e..68e8956a8bd5d1f2a066097dde0679f0f77a365f 100644 (file)
@@ -8,7 +8,6 @@
 #include "rgw_usage.h"
 #include "rgw_formats.h"
 
-using namespace std;
 
 
 static void dump_usage_categories_info(Formatter *formatter, const rgw_usage_log_entry& entry, map<string, bool> *categories)
index e9d995415a98d749fa44f1b6501ec7a8f5753a06..19cfe8fa250e9e5bfa058006376e306608cd170b 100644 (file)
@@ -26,7 +26,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 
 static RGWMetadataHandler *user_meta_handler = NULL;
index a80b7fff7dbc2180b6663c33de72876fba06f551..69599e60bdf768185403a6555c779a9a5cd7b793 100644 (file)
@@ -23,7 +23,6 @@
 #include "include/types.h"
 #include "rgw_website.h"
 
-using namespace std;
 
 
 bool RGWBWRoutingRuleCondition::check_key_condition(const string& key) {
index ff067a4f1da155bd069614cca37beaa3fa45f6da..81000dcdb635b8ddc30c78c2bb2deaf356a743fa 100644 (file)
@@ -15,7 +15,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
 
 XMLObjIter::
 XMLObjIter()
index 14d1d19a097472789ec221376e03db893474230a..728b93f1e2efdce754eb0391aecb8afcc5ad2c0a 100644 (file)
@@ -32,7 +32,6 @@
 #include "os/bluestore/BlueStore.h"
 #endif
 
-using namespace std;
 
 class StoreTool
 {
index 58a8cf386a054dbab0b9da35de23560cc6b31be5..2a85b4e67cb2fad847ae656077f284acf5b6c0c3 100644 (file)
@@ -34,7 +34,6 @@
 #include "crush/CrushCompiler.h"
 
 namespace po = boost::program_options;
-using namespace std;
 
 class TraceIter {
   int fd;
index afd75e3d06aa9de932073fdb06ad42374d99d4b6..45346b49a2194bc8ebe8ebf95dd128dbacc6c995 100644 (file)
@@ -45,7 +45,6 @@
 #include "include/util.h"
 
 namespace po = boost::program_options;
-using namespace std;
 
 #ifdef INTERNAL_TEST
 CompatSet get_test_compat_set() {
index 936d1dc8fa45042de82652d8f50be98c297e082b..8fbff233351ae1cc3546db3ee6eead6bc045c62b 100644 (file)
@@ -23,7 +23,6 @@
 #include "kv/KeyValueDB.h"
 
 namespace po = boost::program_options;
-using namespace std;
 
 int main(int argc, char **argv) {
   po::options_description desc("Allowed options");
index 7ecae9529ce9a3cf08ac265b948b58c4c1255538..61ad4505eb61807935a4d18e5562e5b7350902a9 100644 (file)
@@ -40,7 +40,6 @@
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_crush
 
-using namespace std;
 
 const char *infn = "stdin";
 
index 0972faf185a9e9dbf9433f4246e7e17283289ee5..067e2fa5926ef2e10d47985b761c6e0dbeccbe28 100644 (file)
@@ -20,7 +20,6 @@
 #include "include/str_list.h"
 #include "mon/MonMap.h"
 
-using namespace std;
 
 void usage()
 {
index 7178bd5ec70f496a7be9b85a67502cd289490e6e..e89f23eacb8ae5a522a314e51f6e1e7b63121e41 100644 (file)
@@ -23,7 +23,6 @@
 #include "global/global_init.h"
 #include "osd/OSDMap.h"
 
-using namespace std;
 
 void usage()
 {