Improve const-correctness in cmVisualStudioGeneratorOptions
Add const qualifier to IsDebug(), UsingSBCS() and UsingUnicode().
This commit is contained in:
parent
1768014dfc
commit
5e0252ce68
|
@ -100,13 +100,13 @@ void cmVisualStudioGeneratorOptions::SetVerboseMakefile(bool verbose)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cmVisualStudioGeneratorOptions::IsDebug()
|
bool cmVisualStudioGeneratorOptions::IsDebug() const
|
||||||
{
|
{
|
||||||
return this->FlagMap.find("DebugInformationFormat") != this->FlagMap.end();
|
return this->FlagMap.find("DebugInformationFormat") != this->FlagMap.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmVisualStudioGeneratorOptions::UsingUnicode()
|
bool cmVisualStudioGeneratorOptions::UsingUnicode() const
|
||||||
{
|
{
|
||||||
// Look for the a _UNICODE definition.
|
// Look for the a _UNICODE definition.
|
||||||
for(std::vector<std::string>::const_iterator di = this->Defines.begin();
|
for(std::vector<std::string>::const_iterator di = this->Defines.begin();
|
||||||
|
@ -120,7 +120,7 @@ bool cmVisualStudioGeneratorOptions::UsingUnicode()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmVisualStudioGeneratorOptions::UsingSBCS()
|
bool cmVisualStudioGeneratorOptions::UsingSBCS() const
|
||||||
{
|
{
|
||||||
// Look for the a _SBCS definition.
|
// Look for the a _SBCS definition.
|
||||||
for(std::vector<std::string>::const_iterator di = this->Defines.begin();
|
for(std::vector<std::string>::const_iterator di = this->Defines.begin();
|
||||||
|
|
|
@ -47,10 +47,10 @@ public:
|
||||||
void SetVerboseMakefile(bool verbose);
|
void SetVerboseMakefile(bool verbose);
|
||||||
|
|
||||||
// Check for specific options.
|
// Check for specific options.
|
||||||
bool UsingUnicode();
|
bool UsingUnicode() const;
|
||||||
bool UsingSBCS();
|
bool UsingSBCS() const;
|
||||||
|
|
||||||
bool IsDebug();
|
bool IsDebug() const;
|
||||||
// Write options to output.
|
// Write options to output.
|
||||||
void OutputPreprocessorDefinitions(std::ostream& fout,
|
void OutputPreprocessorDefinitions(std::ostream& fout,
|
||||||
const char* prefix,
|
const char* prefix,
|
||||||
|
|
Loading…
Reference in New Issue