From: Kefu Chai Date: Thu, 8 Jul 2021 00:42:34 +0000 (+0800) Subject: tools/kvstore_tool: add "std::" before ostream and string X-Git-Tag: v17.1.0~1436^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42235%2Fhead;p=ceph.git tools/kvstore_tool: add "std::" before ostream and string also use instead of for forward declaration of std::ostream, so that we don't need to include the whole iostream header file in kvstore_tool.h. Signed-off-by: Kefu Chai --- diff --git a/src/tools/kvstore_tool.h b/src/tools/kvstore_tool.h index e2522124c777..330cba7c98db 100644 --- a/src/tools/kvstore_tool.h +++ b/src/tools/kvstore_tool.h @@ -3,8 +3,8 @@ #pragma once +#include #include -#include #include #include "acconfig.h" @@ -49,7 +49,7 @@ public: uint32_t traverse(const std::string& prefix, const bool do_crc, const bool do_value_dump, - ostream *out); + std::ostream *out); void list(const std::string& prefix, const bool do_crc, const bool do_value_dump); @@ -77,5 +77,5 @@ public: int destructive_repair(); int print_stats() const; - int build_size_histogram(const string& prefix) const; + int build_size_histogram(const std::string& prefix) const; };