diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-23 04:14:48 (GMT) |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2022-11-17 12:23:35 (GMT) |
commit | b0fe4036b7ec2aa7540c7080f14c921e9a485ae3 (patch) | |
tree | 07410a73f43aa38dc49fd10700940614cc9f12d1 /Source/cmDocumentationFormatter.h | |
parent | 3be0d77cc4ae10506fb513987067e9515169a401 (diff) | |
download | CMake-b0fe4036b7ec2aa7540c7080f14c921e9a485ae3.zip CMake-b0fe4036b7ec2aa7540c7080f14c921e9a485ae3.tar.gz CMake-b0fe4036b7ec2aa7540c7080f14c921e9a485ae3.tar.bz2 |
cmDocumentationFormatter: `PrintPreformatted` accept string
Also, make it `const` method cuz it's not modify the state.
Diffstat (limited to 'Source/cmDocumentationFormatter.h')
-rw-r--r-- | Source/cmDocumentationFormatter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmDocumentationFormatter.h b/Source/cmDocumentationFormatter.h index ca7ad0c..6f2ccb4 100644 --- a/Source/cmDocumentationFormatter.h +++ b/Source/cmDocumentationFormatter.h @@ -13,8 +13,8 @@ class cmDocumentationFormatter { public: void PrintFormatted(std::ostream& os, const char* text); + void PrintPreformatted(std::ostream& os, std::string const& text) const; 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); |