summaryrefslogtreecommitdiffstats
path: root/Source/cmSetPropertyCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-01-17 14:24:54 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-01-17 14:24:54 (GMT)
commit62ebff26a70e12ac0c5eec74f48750fbe0520daf (patch)
treeae6b6363cf02784a736a7b1f3191369287d99d57 /Source/cmSetPropertyCommand.cxx
parent9f0270aaaee8ef6b83de4241748e08f6d6fe126a (diff)
parentc768e398f9c29aa12680fe89a52ce9b00eff2866 (diff)
downloadCMake-62ebff26a70e12ac0c5eec74f48750fbe0520daf.zip
CMake-62ebff26a70e12ac0c5eec74f48750fbe0520daf.tar.gz
CMake-62ebff26a70e12ac0c5eec74f48750fbe0520daf.tar.bz2
Merge topic 'cmmakefile-const'
c768e398 cmMakefile: make some methods take const std::string& instead of const char*
Diffstat (limited to 'Source/cmSetPropertyCommand.cxx')
-rw-r--r--Source/cmSetPropertyCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSetPropertyCommand.cxx b/Source/cmSetPropertyCommand.cxx
index 4207860..1a6f1d6 100644
--- a/Source/cmSetPropertyCommand.cxx
+++ b/Source/cmSetPropertyCommand.cxx
@@ -244,12 +244,12 @@ bool cmSetPropertyCommand::HandleTargetMode()
for(std::set<cmStdString>::const_iterator ni = this->Names.begin();
ni != this->Names.end(); ++ni)
{
- if (this->Makefile->IsAlias(ni->c_str()))
+ if (this->Makefile->IsAlias(*ni))
{
this->SetError("can not be used on an ALIAS target.");
return false;
}
- if(cmTarget* target = this->Makefile->FindTargetToUse(ni->c_str()))
+ if(cmTarget* target = this->Makefile->FindTargetToUse(*ni))
{
// Handle the current target.
if(!this->HandleTarget(target))