summaryrefslogtreecommitdiff
path: root/Source/cmXCode21Object.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmXCode21Object.cxx')
-rw-r--r--Source/cmXCode21Object.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmXCode21Object.cxx b/Source/cmXCode21Object.cxx
index 6b133a9e89..1cf9a9513c 100644
--- a/Source/cmXCode21Object.cxx
+++ b/Source/cmXCode21Object.cxx
@@ -16,7 +16,7 @@ cmXCode21Object::cmXCode21Object(PBXType ptype, Type type)
void cmXCode21Object::PrintComment(std::ostream& out)
{
if (this->Comment.empty()) {
- cmXCodeObject* n = this->GetObject("name");
+ cmXCodeObject* n = this->GetAttribute("name");
if (n) {
this->Comment = n->GetString();
cmSystemTools::ReplaceString(this->Comment, "\"", "");