summaryrefslogtreecommitdiffstats
path: root/Source/cmXCodeObject.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-09-02 14:27:15 (GMT)
committerBrad King <brad.king@kitware.com>2008-09-02 14:27:15 (GMT)
commit698b8044a627293dd6a453c2fa10284000b2f5b1 (patch)
treed285499547a628d8861dc91bec4e4b9520f450c1 /Source/cmXCodeObject.h
parent6eea886474541c7cee58a24a6432d12e598f3f28 (diff)
downloadCMake-698b8044a627293dd6a453c2fa10284000b2f5b1.zip
CMake-698b8044a627293dd6a453c2fa10284000b2f5b1.tar.gz
CMake-698b8044a627293dd6a453c2fa10284000b2f5b1.tar.bz2
ENH: Simplify string attributes in Xcode generator
This change cleans up the implementation of cmXCodeObject to avoid un-escaping and re-escaping string values. There is no need to store the string in escaped form. It can be escaped once when it is printed out to the generated project file.
Diffstat (limited to 'Source/cmXCodeObject.h')
-rw-r--r--Source/cmXCodeObject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmXCodeObject.h b/Source/cmXCodeObject.h
index eecb0e0..303fbf5 100644
--- a/Source/cmXCodeObject.h
+++ b/Source/cmXCodeObject.h
@@ -147,6 +147,8 @@ public:
std::vector<cmXCodeObject*> const& GetObjectList() { return this->List;}
void SetComment(const char* c) { this->Comment = c;}
protected:
+ void PrintString(std::ostream& os) const;
+
cmTarget* Target;
Type TypeValue;
cmStdString Id;