]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/rbd_mirror: build without "using namespace std"
authorKefu Chai <kchai@redhat.com>
Wed, 11 Aug 2021 03:41:42 +0000 (11:41 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Aug 2021 01:33:14 +0000 (09:33 +0800)
commit7bc3e11ff9b4e2fc30e4447c057b411ddd49d2ab
tree5a416acc38309b561a20c1ce7b4fc3d3fc2a8ad2
parentc537ffe22c2888e5e20394947922353e3134584d
tools/rbd_mirror: 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_mirror/ClusterWatcher.cc
src/tools/rbd_mirror/ImageMap.cc
src/tools/rbd_mirror/Mirror.cc
src/tools/rbd_mirror/Throttler.cc
src/tools/rbd_mirror/main.cc