summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-08-23 03:55:30 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2022-11-17 12:23:35 (GMT)
commit3be0d77cc4ae10506fb513987067e9515169a401 (patch)
treefe08f37b0c7ff967e372c8e6e17d04750c4cb71b
parent3bff44ffd3b37ba1e46205f66ac03d3363fddc51 (diff)
downloadCMake-3be0d77cc4ae10506fb513987067e9515169a401.zip
CMake-3be0d77cc4ae10506fb513987067e9515169a401.tar.gz
CMake-3be0d77cc4ae10506fb513987067e9515169a401.tar.bz2
cmDocumentationFormatter.h: No need `virtual` methods
Can be added later it really need. Also, drop ctor/dtor to make the class trivially destructable.
-rw-r--r--Source/cmDocumentationFormatter.cxx4
-rw-r--r--Source/cmDocumentationFormatter.h10
2 files changed, 3 insertions, 11 deletions
diff --git a/Source/cmDocumentationFormatter.cxx b/Source/cmDocumentationFormatter.cxx
index fdc6304..5773362 100644
--- a/Source/cmDocumentationFormatter.cxx
+++ b/Source/cmDocumentationFormatter.cxx
@@ -11,10 +11,6 @@
#include "cmDocumentationEntry.h"
#include "cmDocumentationSection.h"
-cmDocumentationFormatter::cmDocumentationFormatter() = default;
-
-cmDocumentationFormatter::~cmDocumentationFormatter() = default;
-
void cmDocumentationFormatter::PrintFormatted(std::ostream& os,
const char* text)
{
diff --git a/Source/cmDocumentationFormatter.h b/Source/cmDocumentationFormatter.h
index 98cac9b..ca7ad0c 100644
--- a/Source/cmDocumentationFormatter.h
+++ b/Source/cmDocumentationFormatter.h
@@ -12,14 +12,10 @@ class cmDocumentationSection;
class cmDocumentationFormatter
{
public:
- cmDocumentationFormatter();
- virtual ~cmDocumentationFormatter();
void PrintFormatted(std::ostream& os, const char* text);
-
- virtual void PrintSection(std::ostream& os,
- cmDocumentationSection const& section);
- virtual void PrintPreformatted(std::ostream& os, const char* text);
- virtual void PrintParagraph(std::ostream& os, const char* text);
+ void PrintSection(std::ostream& os, cmDocumentationSection const& section);
+ void PrintPreformatted(std::ostream& os, const char* text);
+ void PrintParagraph(std::ostream& os, const char* text);
void PrintColumn(std::ostream& os, const char* text);
void SetIndent(const char* indent);