summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-03-19 13:56:44 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2018-03-19 13:56:44 (GMT)
commitb82ad18fe0c94e2869d1fb1f413502383db9f7e9 (patch)
treebc37901694fd424adf4e3c099fea4601c50c7699 /Source/cmVisualStudio10TargetGenerator.cxx
parentd8826406aa343580fb4436058c205581da377d37 (diff)
downloadCMake-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.cxx3
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";