From: Danny Al-Gaaf Date: Wed, 17 Feb 2016 12:28:46 +0000 (+0100) Subject: HTMLFormatter: reuse m_header_done from parent class X-Git-Tag: v10.1.0~312^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=44e028f9d5f562ec651fc3ac67ccee76e5d537c1;p=ceph.git HTMLFormatter: reuse m_header_done from parent class Signed-off-by: Danny Al-Gaaf --- diff --git a/src/common/HTMLFormatter.cc b/src/common/HTMLFormatter.cc index b10c296d07cb..63474adbc1a3 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 c165efc99f6c..69c82a537f39 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;