From e06bd68b36d675465a46196194efa55aecd81d08 Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Tue, 23 Aug 2022 22:08:25 +0400 Subject: cmDocumentationFormatter: Hide internal methods into `private` section --- Source/cmDocumentationFormatter.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/cmDocumentationFormatter.h b/Source/cmDocumentationFormatter.h index ca942bc..e269f6a 100644 --- a/Source/cmDocumentationFormatter.h +++ b/Source/cmDocumentationFormatter.h @@ -13,14 +13,15 @@ class cmDocumentationSection; class cmDocumentationFormatter { public: + void SetIndent(std::size_t indent) { this->TextIndent = indent; } 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, 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: + void PrintPreformatted(std::ostream& os, std::string const&) const; + void PrintParagraph(std::ostream& os, std::string const&) const; + void PrintColumn(std::ostream& os, std::string const&) const; + std::size_t TextWidth = 77u; std::size_t TextIndent = 0u; }; -- cgit v0.12