summaryrefslogtreecommitdiff
path: root/Source/cmXCodeObject.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-03-15 11:02:08 -0500
committerKen Martin <ken.martin@kitware.com>2006-03-15 11:02:08 -0500
commit3d96e522617647665d7e99919ba71d34b1db870c (patch)
tree2ec6cf41cc61aad79b94cff9b2aa321f2c8b686e /Source/cmXCodeObject.cxx
parent609af5c969be6edf087498f983ccd7d3ac818a48 (diff)
downloadcmake-3d96e522617647665d7e99919ba71d34b1db870c.tar.gz
STYLE: some m_ to this-> cleanup
Diffstat (limited to 'Source/cmXCodeObject.cxx')
-rw-r--r--Source/cmXCodeObject.cxx88
1 files changed, 44 insertions, 44 deletions
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx
index 4474b72227..da6bcfb5b2 100644
--- a/Source/cmXCodeObject.cxx
+++ b/Source/cmXCodeObject.cxx
@@ -15,43 +15,43 @@ const char* cmXCodeObject::PBXTypeNames[] = {
cmXCodeObject::~cmXCodeObject()
{
- m_Version = 15;
+ this->Version = 15;
}
//----------------------------------------------------------------------------
cmXCodeObject::cmXCodeObject(PBXType ptype, Type type)
{
- m_Version = 15;
- m_PBXTargetDependency = 0;
- m_cmTarget = 0;
- m_Object =0;
+ this->Version = 15;
+ this->PBXTargetDependency = 0;
+ this->cmTarget = 0;
+ this->Object =0;
- m_IsA = ptype;
+ this->IsA = ptype;
if(type == OBJECT)
{
cmOStringStream str;
str << (void*)this;
str << (void*)this;
str << (void*)this;
- m_Id = str.str();
+ this->Id = str.str();
}
else
{
- m_Id = "Temporary cmake object, should not be refered to in xcode file";
+ this->Id = "Temporary cmake object, should not be refered to in xcode file";
}
- cmSystemTools::ReplaceString(m_Id, "0x", "");
- m_Id = cmSystemTools::UpperCase(m_Id);
- if(m_Id.size() < 24)
+ cmSystemTools::ReplaceString(this->Id, "0x", "");
+ this->Id = cmSystemTools::UpperCase(this->Id);
+ if(this->Id.size() < 24)
{
- int diff = 24 - m_Id.size();
+ int diff = 24 - this->Id.size();
for(int i =0; i < diff; ++i)
{
- m_Id += "0";
+ this->Id += "0";
}
}
- m_Type = type;
- if(m_Type == OBJECT)
+ this->Type = type;
+ if(this->Type == OBJECT)
{
this->AddAttribute("isa", 0);
}
@@ -72,14 +72,14 @@ void cmXCodeObject::Print(std::ostream& out)
{
std::string separator = "\n";
int indentFactor = 1;
- if(m_Version > 15 && (m_IsA == PBXFileReference || m_IsA == PBXBuildFile))
+ if(this->Version > 15 && (this->IsA == PBXFileReference || this->IsA == PBXBuildFile))
{
separator = " ";
indentFactor = 0;
}
cmXCodeObject::Indent(2*indentFactor, out);
- out << m_Id << " ";
- if(!(this->m_IsA == PBXGroup && this->m_Comment.size() == 0))
+ out << this->Id << " ";
+ if(!(this->this->IsA == PBXGroup && this->this->Comment.size() == 0))
{
this->PrintComment(out);
}
@@ -90,8 +90,8 @@ void cmXCodeObject::Print(std::ostream& out)
}
std::map<cmStdString, cmXCodeObject*>::iterator i;
cmXCodeObject::Indent(3*indentFactor, out);
- out << "isa = " << PBXTypeNames[m_IsA] << ";" << separator;
- for(i = m_ObjectAttributes.begin(); i != m_ObjectAttributes.end(); ++i)
+ out << "isa = " << PBXTypeNames[this->IsA] << ";" << separator;
+ for(i = this->ObjectAttributes.begin(); i != this->ObjectAttributes.end(); ++i)
{
cmXCodeObject* object = i->second;
if(i->first != "isa")
@@ -102,46 +102,46 @@ void cmXCodeObject::Print(std::ostream& out)
{
continue;
}
- if(object->m_Type == OBJECT_LIST)
+ if(object->this->Type == OBJECT_LIST)
{
out << i->first << " = (" << separator;
- for(unsigned int k = 0; k < i->second->m_List.size(); k++)
+ for(unsigned int k = 0; k < i->second->this->List.size(); k++)
{
cmXCodeObject::Indent(4*indentFactor, out);
- out << i->second->m_List[k]->m_Id << " ";
- i->second->m_List[k]->PrintComment(out);
+ out << i->second->this->List[k]->this->Id << " ";
+ i->second->this->List[k]->PrintComment(out);
out << "," << separator;
}
cmXCodeObject::Indent(3*indentFactor, out);
out << ");" << separator;
}
- else if(object->m_Type == ATTRIBUTE_GROUP)
+ else if(object->this->Type == ATTRIBUTE_GROUP)
{
std::map<cmStdString, cmXCodeObject*>::iterator j;
out << i->first << " = {" << separator;
- for(j = object->m_ObjectAttributes.begin(); j !=
- object->m_ObjectAttributes.end(); ++j)
+ for(j = object->ObjectAttributes.begin(); j !=
+ object->ObjectAttributes.end(); ++j)
{
cmXCodeObject::Indent(4 *indentFactor, out);
- out << j->first << " = " << j->second->m_String << ";";
+ out << j->first << " = " << j->second->this->String << ";";
out << separator;
}
cmXCodeObject::Indent(3 *indentFactor, out);
out << "};" << separator;
}
- else if(object->m_Type == OBJECT_REF)
+ else if(object->this->Type == OBJECT_REF)
{
- out << i->first << " = " << object->m_Object->m_Id;
- if(object->m_Object->HasComment() && i->first != "remoteGlobalIDString")
+ out << i->first << " = " << object->this->Object->this->Id;
+ if(object->this->Object->HasComment() && i->first != "remoteGlobalIDString")
{
out << " ";
- object->m_Object->PrintComment(out);
+ object->this->Object->PrintComment(out);
}
out << ";" << separator;
}
- else if(object->m_Type == STRING)
+ else if(object->this->Type == STRING)
{
- out << i->first << " = " << object->m_String << ";" << separator;
+ out << i->first << " = " << object->this->String << ";" << separator;
}
else
{
@@ -160,7 +160,7 @@ void cmXCodeObject::PrintList(std::vector<cmXCodeObject*> const& objs,
out << "objects = {\n";
for(unsigned int i = 0; i < objs.size(); ++i)
{
- if(objs[i]->m_Type == OBJECT)
+ if(objs[i]->this->Type == OBJECT)
{
objs[i]->Print(out);
}
@@ -172,10 +172,10 @@ void cmXCodeObject::PrintList(std::vector<cmXCodeObject*> const& objs,
void cmXCodeObject::CopyAttributes(cmXCodeObject* copy)
{
- this->m_ObjectAttributes = copy->m_ObjectAttributes;
- this->m_List = copy->m_List;
- this->m_String = copy->m_String;
- this->m_Object = copy->m_Object;
+ this->this->ObjectAttributes = copy->this->ObjectAttributes;
+ this->this->List = copy->this->List;
+ this->this->String = copy->this->String;
+ this->this->Object = copy->this->Object;
}
void cmXCodeObject::SetString(const char* s)
@@ -183,22 +183,22 @@ void cmXCodeObject::SetString(const char* s)
std::string ss = s;
if(ss.size() == 0)
{
- m_String = "\"\"";
+ this->String = "\"\"";
return;
}
bool needQuote = false;
- m_String = "";
+ this->String = "";
if(ss.find_first_of(" <>.+-=") != ss.npos)
{
needQuote = true;
}
if(needQuote)
{
- m_String = "\"";
+ this->String = "\"";
}
- m_String += s;
+ this->String += s;
if(needQuote)
{
- m_String += "\"";
+ this->String += "\"";
}
}