summaryrefslogtreecommitdiffstats
path: root/Source/cmCommand.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-03-15 16:02:08 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-03-15 16:02:08 (GMT)
commit3d96e522617647665d7e99919ba71d34b1db870c (patch)
tree2ec6cf41cc61aad79b94cff9b2aa321f2c8b686e /Source/cmCommand.h
parent609af5c969be6edf087498f983ccd7d3ac818a48 (diff)
downloadCMake-3d96e522617647665d7e99919ba71d34b1db870c.zip
CMake-3d96e522617647665d7e99919ba71d34b1db870c.tar.gz
CMake-3d96e522617647665d7e99919ba71d34b1db870c.tar.bz2
STYLE: some m_ to this-> cleanup
Diffstat (limited to 'Source/cmCommand.h')
-rw-r--r--Source/cmCommand.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/Source/cmCommand.h b/Source/cmCommand.h
index 0143047..7466bb5 100644
--- a/Source/cmCommand.h
+++ b/Source/cmCommand.h
@@ -40,7 +40,7 @@ public:
* Construct the command. By default it is enabled with no makefile.
*/
cmCommand()
- {m_Makefile = 0; m_Enabled = true;}
+ {this->Makefile = 0; this->Enabled = true;}
/**
* Need virtual destructor to destroy real command type.
@@ -51,8 +51,8 @@ public:
* Specify the makefile.
*/
void SetMakefile(cmMakefile*m)
- {m_Makefile = m; }
- cmMakefile* GetMakefile() { return m_Makefile; }
+ {this->Makefile = m; }
+ cmMakefile* GetMakefile() { return this->Makefile; }
/**
* This is called by the cmMakefile when the command is first
@@ -62,7 +62,7 @@ public:
virtual bool InvokeInitialPass(const std::vector<cmListFileArgument>& args)
{
std::vector<std::string> expandedArguments;
- m_Makefile->ExpandArguments(args, expandedArguments);
+ this->Makefile->ExpandArguments(args, expandedArguments);
return this->InitialPass(expandedArguments);
}
@@ -120,37 +120,37 @@ public:
* Enable the command.
*/
void EnabledOn()
- {m_Enabled = true;}
+ {this->Enabled = true;}
/**
* Disable the command.
*/
void EnabledOff()
- {m_Enabled = false;}
+ {this->Enabled = false;}
/**
* Query whether the command is enabled.
*/
bool GetEnabled()
- {return m_Enabled;}
+ {return this->Enabled;}
/**
* Disable or enable the command.
*/
void SetEnabled(bool enabled)
- {m_Enabled = enabled;}
+ {this->Enabled = enabled;}
/**
* Return the last error string.
*/
const char* GetError()
{
- if(m_Error.length() == 0)
+ if(this->Error.length() == 0)
{
- m_Error = this->GetName();
- m_Error += " unknown error.";
+ this->Error = this->GetName();
+ this->Error += " unknown error.";
}
- return m_Error.c_str();
+ return this->Error.c_str();
}
/**
@@ -158,17 +158,17 @@ public:
*/
void SetError(const char* e)
{
- m_Error = this->GetName();
- m_Error += " ";
- m_Error += e;
+ this->Error = this->GetName();
+ this->Error += " ";
+ this->Error += e;
}
protected:
- cmMakefile* m_Makefile;
+ cmMakefile* Makefile;
private:
- bool m_Enabled;
- std::string m_Error;
+ bool Enabled;
+ std::string Error;
};
#endif