From 297223e22f48cf53a11d2d68a335fdc849937011 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Thu, 2 Apr 2020 19:29:22 -0400 Subject: [PATCH] perfglue: Build ceph-osd without using namespace declarations in headers This is part of a series of commits to clean up using namespace at top level in headers. Signed-off-by: Adam C. Emerson --- src/perfglue/cpu_profiler.cc | 2 +- src/perfglue/cpu_profiler.h | 2 +- src/perfglue/disabled_stubs.cc | 2 +- src/perfglue/heap_profiler.cc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/perfglue/cpu_profiler.cc b/src/perfglue/cpu_profiler.cc index beec88533d0e8..ea1be7e959596 100644 --- a/src/perfglue/cpu_profiler.cc +++ b/src/perfglue/cpu_profiler.cc @@ -20,7 +20,7 @@ #include "perfglue/cpu_profiler.h" void cpu_profiler_handle_command(const std::vector &cmd, - ostream& out) + std::ostream& out) { if (cmd[1] == "status") { ProfilerState st; diff --git a/src/perfglue/cpu_profiler.h b/src/perfglue/cpu_profiler.h index 5f892adff89f0..a2a8ce4ca35a9 100644 --- a/src/perfglue/cpu_profiler.h +++ b/src/perfglue/cpu_profiler.h @@ -20,6 +20,6 @@ #include void cpu_profiler_handle_command(const std::vector &cmd, - ostream& out); + std::ostream& out); #endif diff --git a/src/perfglue/disabled_stubs.cc b/src/perfglue/disabled_stubs.cc index dfbc0e663d8a2..40474f644fc8e 100644 --- a/src/perfglue/disabled_stubs.cc +++ b/src/perfglue/disabled_stubs.cc @@ -19,7 +19,7 @@ #include void cpu_profiler_handle_command(const std::vector &cmd, - ostream& out) + std::ostream& out) { out << "cpu_profiler support not linked in"; } diff --git a/src/perfglue/heap_profiler.cc b/src/perfglue/heap_profiler.cc index c5cdbb4ee9627..cbfc9008627b9 100644 --- a/src/perfglue/heap_profiler.cc +++ b/src/perfglue/heap_profiler.cc @@ -141,7 +141,7 @@ void ceph_heap_profiler_dump(const char *reason) #define HEAP_PROFILER_STATS_SIZE 2048 void ceph_heap_profiler_handle_command(const std::vector& cmd, - ostream& out) + std::ostream& out) { #ifdef HAVE_LIBTCMALLOC if (cmd.size() == 1 && cmd[0] == "dump") { -- 2.39.5