diff options
author | Kefu Chai <kchai@redhat.com> | 2021-08-11 05:53:01 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2021-08-13 06:23:36 +0200 |
commit | 1d1e173876db1067d001e688b8eff0375908226f (patch) | |
tree | 3f7924142da0d53816a341ef482e935f7b7db4d1 /src/test/cls_lock | |
parent | test/erasure-code: build without "using namespace std" (diff) | |
download | ceph-1d1e173876db1067d001e688b8eff0375908226f.tar.xz ceph-1d1e173876db1067d001e688b8eff0375908226f.zip |
test: : build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.
so we don't rely on "using namespace std" in one or more included
headers.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/test/cls_lock')
-rw-r--r-- | src/test/cls_lock/test_cls_lock.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/cls_lock/test_cls_lock.cc b/src/test/cls_lock/test_cls_lock.cc index 405befa0335..bf09ec592cf 100644 --- a/src/test/cls_lock/test_cls_lock.cc +++ b/src/test/cls_lock/test_cls_lock.cc @@ -23,11 +23,11 @@ #include "test/librados/test_cxx.h" #include "gtest/gtest.h" -using namespace librados; - #include "cls/lock/cls_lock_client.h" #include "cls/lock/cls_lock_ops.h" +using namespace std; +using namespace librados; using namespace rados::cls::lock; void lock_info(IoCtx *ioctx, string& oid, string& name, map<locker_id_t, locker_info_t>& lockers, |