From 44e028f9d5f562ec651fc3ac67ccee76e5d537c1 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 17 Feb 2016 13:28:46 +0100 Subject: [PATCH] HTMLFormatter: reuse m_header_done from parent class Signed-off-by: Danny Al-Gaaf --- src/common/HTMLFormatter.cc | 2 +- src/common/HTMLFormatter.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/common/HTMLFormatter.cc b/src/common/HTMLFormatter.cc index b10c296d07c..63474adbc1a 100644 --- a/src/common/HTMLFormatter.cc +++ b/src/common/HTMLFormatter.cc @@ -35,7 +35,7 @@ namespace ceph { HTMLFormatter::HTMLFormatter(bool pretty) -: XMLFormatter(pretty), m_header_done(false), m_status(0), m_status_name(NULL) +: XMLFormatter(pretty), m_status(0), m_status_name(NULL) { } diff --git a/src/common/HTMLFormatter.h b/src/common/HTMLFormatter.h index c165efc99f6..69c82a537f3 100644 --- a/src/common/HTMLFormatter.h +++ b/src/common/HTMLFormatter.h @@ -37,9 +37,7 @@ namespace ceph { /* with attrs */ void dump_string_with_attrs(const char *name, const std::string& s, const FormatterAttrs& attrs); private: - template void dump_template(const char *name, T arg); - - bool m_header_done; + template void dump_template(const char *name, T arg); int m_status; const char* m_status_name; -- 2.47.3