]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/health_check: s/std::list/list/
authorKefu Chai <kchai@redhat.com>
Thu, 9 Nov 2017 13:37:11 +0000 (21:37 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 21 Nov 2017 09:35:18 +0000 (17:35 +0800)
so it's self-contained, and .cc files including it are not obliged to `using namespace std`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/health_check.h

index a8971ce44244d5b523b84348a6aaf58177900e42..71e301159c25660e634dc119c46a7b84e28f6ac8 100644 (file)
@@ -49,7 +49,7 @@ struct health_check_t {
     f->close_section();
   }
 
-  static void generate_test_instances(list<health_check_t*>& ls) {
+  static void generate_test_instances(std::list<health_check_t*>& ls) {
     ls.push_back(new health_check_t);
     ls.push_back(new health_check_t);
     ls.back()->severity = HEALTH_ERR;
@@ -61,7 +61,7 @@ WRITE_CLASS_DENC(health_check_t)
 
 
 struct health_check_map_t {
-  map<std::string,health_check_t> checks;
+  std::map<std::string,health_check_t> checks;
 
   DENC(health_check_map_t, v, p) {
     DENC_START(1, 1, p);
@@ -75,7 +75,7 @@ struct health_check_map_t {
     }
   }
 
-  static void generate_test_instances(list<health_check_map_t*>& ls) {
+  static void generate_test_instances(std::list<health_check_map_t*>& ls) {
     ls.push_back(new health_check_map_t);
     ls.push_back(new health_check_map_t);
     {