]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: drop using namespace std in header files
authorAbhishek Lekshmanan <abhishek@suse.com>
Wed, 17 May 2017 14:13:54 +0000 (16:13 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Wed, 17 May 2017 14:13:54 +0000 (16:13 +0200)
We're still having the include in include/type.h, so just sweeping
things under the rug for now

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
14 files changed:
src/rgw/rgw_acl.h
src/rgw/rgw_acl_s3.h
src/rgw/rgw_bucket.h
src/rgw/rgw_common.h
src/rgw/rgw_cors_s3.h
src/rgw/rgw_cors_swift.h
src/rgw/rgw_lc.h
src/rgw/rgw_lc_s3.h
src/rgw/rgw_op.h
src/rgw/rgw_replica_log.h
src/rgw/rgw_rest_role.cc
src/rgw/rgw_torrent.h
src/rgw/rgw_user.h
src/rgw/rgw_xml.h

index 24567677e8e17058096718baf2b015114967eab0..26c84d121a2d7b16efc768f0d32ca2ad1296d065 100644 (file)
@@ -15,8 +15,6 @@
 
 #include "rgw_basic_types.h"
 
-using namespace std;
-
 #define RGW_PERM_NONE            0x00
 #define RGW_PERM_READ            0x01
 #define RGW_PERM_WRITE           0x02
index 3a52735e0915d753a7ba7cae65706e948dddaab2..6991a0b83639ac2d4dfe35f5679f0a0358479509 100644 (file)
@@ -13,9 +13,6 @@
 #include "rgw_xml.h"
 #include "rgw_acl.h"
 
-
-using namespace std;
-
 class RGWRados;
 
 class ACLPermission_S3 : public ACLPermission, public XMLObj
index 09a5ae2e825b3e54b7488b2b0e23a3c9302ee0f5..14c472faa8cd083994b4ef93062104a13cca2fd9 100644 (file)
@@ -20,9 +20,6 @@
 #include "common/ceph_time.h"
 #include "rgw_formats.h"
 
-
-using namespace std;
-
 // define as static when RGWBucket implementation compete
 extern void rgw_get_buckets_obj(const rgw_user& user_id, string& buckets_obj_id);
 
index 5ad7637b44c731895891967aac99a8e4a6b5e3cf..90e4a7410d92367e1f12c0da4d2c3bd9041a019b 100644 (file)
@@ -29,8 +29,6 @@
 #include "cls/rgw/cls_rgw_types.h"
 #include "include/rados/librados.hpp"
 
-using namespace std;
-
 namespace ceph {
   class Formatter;
 }
index cad423c10a2fba820c69f1f0f609e79e31b2dcaf..aac42d8f1478346cc6d1a73dd6e2fd108db6c7eb 100644 (file)
@@ -25,8 +25,6 @@
 #include "rgw_xml.h"
 #include "rgw_cors.h"
 
-using namespace std;
-
 class RGWCORSRule_S3 : public RGWCORSRule, public XMLObj
 {
   public:
index 6aef5e1356136ca51efbddfc943f93c3e8154491..d2516dd03570d0ef435da6f3f44f43134aae47e5 100644 (file)
@@ -23,8 +23,6 @@
 
 #include "rgw_cors.h"
 
-using namespace std;
-
 class RGWCORSConfiguration_SWIFT : public RGWCORSConfiguration
 {
   public:
index 16bd56babd56be6c49f36aabc1a96d7f88f5e8fb..480ba3fe513bbab9b87913b74f16a603aa5ea59e 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <atomic>
 
-using namespace std;
 #define HASH_PRIME 7877
 #define MAX_ID_LEN 255
 static string lc_oid_prefix = "lc";
index c969ac979c93cf6d859a28d61f76c0dd1a4b133e..66dcb7fa990b82d132c6e646228d39bc80af7506 100644 (file)
 #include "rgw_lc.h"
 #include "rgw_xml.h"
 
-
-
-using namespace std;
-
 class LCID_S3 : public XMLObj
 {
 public:
index 1fcf4c30120f4fe63e99689afb67e9e1f4c5c0f5..7538b027d0ad6d77b4c892746a601b5a5c096302 100644 (file)
@@ -43,7 +43,6 @@
 
 #include "include/assert.h"
 
-using namespace std;
 using ceph::crypto::SHA1;
 
 struct req_state;
index 45cac52d68c6b6b26d4888f89fe4fac16bcfb125..699600c0fe48a5e7d5c28f25daab5432fb19d2e1 100644 (file)
@@ -22,8 +22,6 @@
 class RGWRados;
 class CephContext;
 
-using namespace std;
-
 #define META_REPLICA_LOG_OBJ_PREFIX "meta.replicalog."
 #define DATA_REPLICA_LOG_OBJ_PREFIX "data.replicalog."
 
index 386504398fefb4f01d0a86e30ecc2d29813f6a63..d19a589ae77e0d30eb6695ffe2b9dc3dc3d981dc 100644 (file)
@@ -15,8 +15,6 @@
 
 #define dout_subsys ceph_subsys_rgw
 
-using namespace std;
-
 void RGWRestRole::send_response()
 {
   if (op_ret) {
index 6d2b28cd91a34c4382b6aa8e4dcf23899cf6381d..ab8e89bbd799870c820dfba6ab30618dd31134d4 100644 (file)
@@ -11,7 +11,6 @@
 #include "rgw_rados.h"
 #include "rgw_common.h"
 
-using namespace std;
 using ceph::crypto::SHA1;
 
 struct req_state;
index 50cc1b62909f2d08f0ea9f5feff5a145f608678e..7a27d0e7007939118505ec36d690278c195e22bd 100644 (file)
@@ -19,8 +19,6 @@
 #include "common/Formatter.h"
 #include "rgw_formats.h"
 
-using namespace std;
-
 #define RGW_USER_ANON_ID "anonymous"
 
 #define SECRET_KEY_LEN 40
index 2517c7b78e8b6c7b9abccd18199bccb4afc157c2..1f37a6a49e2f29c468130610620ed7fd26b4242f 100644 (file)
@@ -10,9 +10,6 @@
 #include <include/types.h>
 #include <common/Formatter.h>
 
-using namespace std;
-
-
 class XMLObj;
 
 class XMLObjIter {