[cmake-developers] [PATCH 5/9] Xcode: Properly indent PBXFileReference and PBXBuildFile

Gregor Jasny gjasny at googlemail.com
Mon Apr 13 15:38:02 EDT 2015


Move indent factor change behind indention of start-of-line.
---
 Source/cmXCodeObject.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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))
     {
-- 
2.3.3



More information about the cmake-developers mailing list