Xcode: PrintComment will prepend a whitespace itself before the comment

This commit is contained in:
Gregor Jasny 2015-04-09 10:14:47 +02:00
parent 4bd2544b25
commit 6e8952c193
2 changed files with 3 additions and 4 deletions

View File

@ -31,7 +31,7 @@ void cmXCode21Object::PrintComment(std::ostream& out)
cmSystemTools::ReplaceString(this->Comment, "\"", ""); cmSystemTools::ReplaceString(this->Comment, "\"", "");
} }
} }
out << "/* "; out << " /* ";
out << this->Comment; out << this->Comment;
out << " */"; out << " */";
} }

View File

@ -98,7 +98,7 @@ void cmXCodeObject::Print(std::ostream& out)
separator = " "; separator = " ";
indentFactor = 0; indentFactor = 0;
} }
out << this->Id << " "; out << this->Id;
if(!(this->IsA == PBXGroup && this->Comment.size() == 0)) if(!(this->IsA == PBXGroup && this->Comment.size() == 0))
{ {
this->PrintComment(out); this->PrintComment(out);
@ -129,7 +129,7 @@ void cmXCodeObject::Print(std::ostream& out)
for(unsigned int k = 0; k < i->second->List.size(); k++) for(unsigned int k = 0; k < i->second->List.size(); k++)
{ {
cmXCodeObject::Indent(4*indentFactor, out); cmXCodeObject::Indent(4*indentFactor, out);
out << i->second->List[k]->Id << " "; out << i->second->List[k]->Id;
i->second->List[k]->PrintComment(out); i->second->List[k]->PrintComment(out);
out << "," << separator; out << "," << separator;
} }
@ -192,7 +192,6 @@ void cmXCodeObject::Print(std::ostream& out)
out << " = " << object->Object->Id; out << " = " << object->Object->Id;
if(object->Object->HasComment() && i->first != "remoteGlobalIDString") if(object->Object->HasComment() && i->first != "remoteGlobalIDString")
{ {
out << " ";
object->Object->PrintComment(out); object->Object->PrintComment(out);
} }
out << ";" << separator; out << ";" << separator;