diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-03-19 13:56:44 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-03-19 13:56:44 (GMT) |
commit | b82ad18fe0c94e2869d1fb1f413502383db9f7e9 (patch) | |
tree | bc37901694fd424adf4e3c099fea4601c50c7699 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | d8826406aa343580fb4436058c205581da377d37 (diff) | |
download | CMake-b82ad18fe0c94e2869d1fb1f413502383db9f7e9.zip CMake-b82ad18fe0c94e2869d1fb1f413502383db9f7e9.tar.gz CMake-b82ad18fe0c94e2869d1fb1f413502383db9f7e9.tar.bz2 |
cmVisualStudio10TargetGenerator: fix indentation
Added printing empty string to get the right indentation.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 87d3c78..7e6e803 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -29,6 +29,7 @@ struct cmVisualStudio10TargetGenerator::Elem , Indent(i) { } + Elem(const Elem&) = delete; Elem(Elem& par) : S(par.S) , Indent(par.Indent + 1) @@ -47,6 +48,8 @@ struct cmVisualStudio10TargetGenerator::Elem if (HasElements) { S.fill(' '); S.width(Indent * 2); + // write an empty string to get the fill level indent to print + S << ""; S << "</" << tag << ">\n"; } else { S << " />\n"; |