]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: build without "using namespace std"
authorKefu Chai <kchai@redhat.com>
Wed, 11 Aug 2021 03:48:33 +0000 (11:48 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Aug 2021 04:23:36 +0000 (12:23 +0800)
commitc63ecb602e5916d5e0beed137787fdfc67707f15
tree9c6f6c8797fe4913da27e5583dc46386aeedfcd3
parent6eb14774fec0fce1145a440570bfd76234675b42
mgr: 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>
18 files changed:
src/ceph_mgr.cc
src/mgr/ActivePyModule.cc
src/mgr/ActivePyModules.cc
src/mgr/BaseMgrModule.cc
src/mgr/BaseMgrStandbyModule.cc
src/mgr/ClusterState.cc
src/mgr/ClusterState.h
src/mgr/DaemonHealthMetricCollector.cc
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h
src/mgr/DaemonState.cc
src/mgr/DaemonState.h
src/mgr/Mgr.cc
src/mgr/MgrStandby.cc
src/mgr/MgrStandby.h
src/mgr/PyModule.cc
src/mgr/PyOSDMap.cc
src/mgr/ServiceMap.cc