diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-23 11:58:44 +0400 |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2022-11-17 16:37:09 +0400 |
commit | 3feac60591ea0a4b010c7f21eb9e8854d159d9a0 (patch) | |
tree | 104536e1b730910916cdebd82b7c810bff2e4ff8 /Source/cmDocumentationFormatter.h | |
parent | 21c3e2107d101954d6e2e60bbd2d660c6d95a455 (diff) | |
download | cmake-3feac60591ea0a4b010c7f21eb9e8854d159d9a0.tar.gz |
cmDocumentationFormatter: All printing methods accept strings
Diffstat (limited to 'Source/cmDocumentationFormatter.h')
-rw-r--r-- | Source/cmDocumentationFormatter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmDocumentationFormatter.h b/Source/cmDocumentationFormatter.h index 113db1e6b8..ca942bc23c 100644 --- a/Source/cmDocumentationFormatter.h +++ b/Source/cmDocumentationFormatter.h @@ -13,11 +13,11 @@ class cmDocumentationSection; class cmDocumentationFormatter { public: - void PrintFormatted(std::ostream& os, const char* text); + void PrintFormatted(std::ostream& os, std::string const& text) const; void PrintPreformatted(std::ostream& os, std::string const& text) const; void PrintSection(std::ostream& os, cmDocumentationSection const& section); - void PrintParagraph(std::ostream& os, const char* text); - void PrintColumn(std::ostream& os, const char* text); + void PrintParagraph(std::ostream& os, std::string const& text) const; + void PrintColumn(std::ostream& os, std::string const& text) const; void SetIndent(std::size_t indent) { this->TextIndent = indent; } private: |