cmDocumentationFormatter: Turn TextIndent member into size_t

… instead of `std::string`.
This commit is contained in:
Alex Turbov
2022-08-23 09:40:22 +04:00
parent 1d6c8797fc
commit cf39773df9
4 changed files with 33 additions and 27 deletions

View File

@@ -18,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(std::string indent) { this->TextIndent = std::move(indent); }
void SetIndent(std::size_t indent) { this->TextIndent = indent; }
private:
int TextWidth = 77;
std::string TextIndent = {};
std::size_t TextIndent = 0u;
};