summaryrefslogtreecommitdiffstats
path: root/Source/cmXCodeObject.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmXCodeObject.cxx')
-rw-r--r--Source/cmXCodeObject.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx
index 262729a..b4ecee9 100644
--- a/Source/cmXCodeObject.cxx
+++ b/Source/cmXCodeObject.cxx
@@ -20,6 +20,14 @@ cmXCodeObject::cmXCodeObject(PBXType ptype, Type type)
str << (void*)this;
m_Id = str.str();
cmSystemTools::ReplaceString(m_Id, "0x", "");
+ if(m_Id.size() < 24)
+ {
+ int diff = 24 - m_Id.size();
+ for(int i =0; i < diff; ++i)
+ {
+ m_Id += "0";
+ }
+ }
m_Type = type;
if(m_Type == OBJECT)
{