summaryrefslogtreecommitdiffstats
path: root/Source/cmXCodeObject.cxx
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2015-04-07 18:47:10 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2015-04-17 19:50:04 (GMT)
commit5cb4c8380d9a0f5922a2eed60f6a1fd1274e9141 (patch)
treeea4f7ac34783cde0d75390c79b0daf892a895274 /Source/cmXCodeObject.cxx
parenta723427b6450c1ec77226fb58aa3070a341891a2 (diff)
downloadCMake-5cb4c8380d9a0f5922a2eed60f6a1fd1274e9141.zip
CMake-5cb4c8380d9a0f5922a2eed60f6a1fd1274e9141.tar.gz
CMake-5cb4c8380d9a0f5922a2eed60f6a1fd1274e9141.tar.bz2
Xcode: Properly indent PBXFileReference and PBXBuildFile
Move indent factor change behind indention of start-of-line.
Diffstat (limited to 'Source/cmXCodeObject.cxx')
-rw-r--r--Source/cmXCodeObject.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx
index 33ce8cc..519545a 100644
--- a/Source/cmXCodeObject.cxx
+++ b/Source/cmXCodeObject.cxx
@@ -91,13 +91,13 @@ void cmXCodeObject::Print(std::ostream& out)
{
std::string separator = "\n";
int indentFactor = 1;
+ cmXCodeObject::Indent(2*indentFactor, out);
if(this->Version > 15
&& (this->IsA == PBXFileReference || this->IsA == PBXBuildFile))
{
separator = " ";
indentFactor = 0;
}
- cmXCodeObject::Indent(2*indentFactor, out);
out << this->Id << " ";
if(!(this->IsA == PBXGroup && this->Comment.size() == 0))
{