summaryrefslogtreecommitdiffstats
path: root/Source/cmXMLWriter.h
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-04-03 21:28:08 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2018-04-03 21:28:08 (GMT)
commit050ddfb3f3236fd03c72f7dc936332eed6b3997f (patch)
treec5c2486464e67923f2c18717258092c06a33f907 /Source/cmXMLWriter.h
parent561238bb6f07a5ab31293928bd98f6f8911d8bc1 (diff)
downloadCMake-050ddfb3f3236fd03c72f7dc936332eed6b3997f.zip
CMake-050ddfb3f3236fd03c72f7dc936332eed6b3997f.tar.gz
CMake-050ddfb3f3236fd03c72f7dc936332eed6b3997f.tar.bz2
cmXMLWriter: code improvement
New Indent member will be used for XML indentation
Diffstat (limited to 'Source/cmXMLWriter.h')
-rw-r--r--Source/cmXMLWriter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmXMLWriter.h b/Source/cmXMLWriter.h
index 80940ee..ff0df18 100644
--- a/Source/cmXMLWriter.h
+++ b/Source/cmXMLWriter.h
@@ -67,7 +67,7 @@ public:
void SetIndentationElement(std::string const& element);
private:
- void ConditionalLineBreak(bool condition, std::size_t indent);
+ void ConditionalLineBreak(bool condition);
void PreAttribute();
void PreContent();
@@ -128,6 +128,7 @@ private:
std::stack<std::string, std::vector<std::string>> Elements;
std::string IndentationElement;
std::size_t Level;
+ std::size_t Indent;
bool ElementOpen;
bool BreakAttrib;
bool IsContent;