From bdb4b20eaebd723476d18bfffc22f2f7d2f8ad5e Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 8 Jul 2021 08:42:34 +0800 Subject: [PATCH] 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 --- src/tools/kvstore_tool.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/kvstore_tool.h b/src/tools/kvstore_tool.h index e2522124c7775..330cba7c98dbd 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; }; -- 2.39.5