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/librgw_file_gp.cc | |
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/librgw_file_gp.cc')
-rw-r--r-- | src/test/librgw_file_gp.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/librgw_file_gp.cc b/src/test/librgw_file_gp.cc index bde68fb4b9e..757fdfd8da2 100644 --- a/src/test/librgw_file_gp.cc +++ b/src/test/librgw_file_gp.cc @@ -30,6 +30,8 @@ #define dout_context g_ceph_context #define dout_subsys ceph_subsys_rgw +using namespace std; + namespace { librgw_t rgw = nullptr; string uid("testuser"); |