summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentationFormatter.h
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-08-23 04:40:41 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2022-11-17 12:23:36 (GMT)
commit5f3f8118363e4e483471733d1a89d6ae6ab179f1 (patch)
tree2f9c4785358cd993218bcf36509904b19af33e71 /Source/cmDocumentationFormatter.h
parentb0fe4036b7ec2aa7540c7080f14c921e9a485ae3 (diff)
downloadCMake-5f3f8118363e4e483471733d1a89d6ae6ab179f1.zip
CMake-5f3f8118363e4e483471733d1a89d6ae6ab179f1.tar.gz
CMake-5f3f8118363e4e483471733d1a89d6ae6ab179f1.tar.bz2
cmDocumentationFormatter: `TextIndent` member is `std::string` now
Was `const char*`.
Diffstat (limited to 'Source/cmDocumentationFormatter.h')
-rw-r--r--Source/cmDocumentationFormatter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmDocumentationFormatter.h b/Source/cmDocumentationFormatter.h
index 6f2ccb4..003cf89 100644
--- a/Source/cmDocumentationFormatter.h
+++ b/Source/cmDocumentationFormatter.h
@@ -5,6 +5,7 @@
#include "cmConfigure.h" // IWYU pragma: keep
#include <iosfwd>
+#include <string>
class cmDocumentationSection;
@@ -17,9 +18,9 @@ public:
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 SetIndent(const char* indent);
+ void SetIndent(std::string indent) { this->TextIndent = std::move(indent); }
private:
int TextWidth = 77;
- const char* TextIndent = "";
+ std::string TextIndent = {};
};