]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
HTMLFormatter: reuse m_header_done from parent class
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 17 Feb 2016 12:28:46 +0000 (13:28 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 19 Feb 2016 11:50:35 +0000 (12:50 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/common/HTMLFormatter.cc
src/common/HTMLFormatter.h

index b10c296d07cb648a0ead391c131a898a1b7429a6..63474adbc1a321a2def1130fbc40f4fa74c07bfb 100644 (file)
@@ -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)
 {
 }
 
index c165efc99f6ced428cd485716045d3267f4b668b..69c82a537f39fa33a941284a7f4e09b409a97912 100644 (file)
@@ -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 <typename T> void dump_template(const char *name, T arg);
-
-    bool m_header_done;
+    template <typename T> void dump_template(const char *name, T arg);
 
     int m_status;
     const char* m_status_name;