]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/rbd: build without "using namespace std"
authorKefu Chai <kchai@redhat.com>
Wed, 11 Aug 2021 03:40:46 +0000 (11:40 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Aug 2021 01:33:14 +0000 (09:33 +0800)
commitc537ffe22c2888e5e20394947922353e3134584d
treecb13983e218cb5e7f66c567ed4bc64eeed6f2580
parenteba122dbe5adc3bc348d1f47b207feaf49c13806
tools/rbd: 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>
src/tools/rbd/Shell.cc
src/tools/rbd/Utils.cc
src/tools/rbd/action/Bench.cc
src/tools/rbd/action/Create.cc
src/tools/rbd/action/Export.cc
src/tools/rbd/action/Import.cc
src/tools/rbd/action/List.cc
src/tools/rbd/action/MergeDiff.cc
src/tools/rbd/action/Snap.cc