summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-03-12 18:26:45 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2014-04-29 20:00:06 (GMT)
commit3f51752264bc1243fa2e56da41131ac363d3bd85 (patch)
tree0fee4d1eb6f32b5f67971ba76ad62ae372ff90d4 /Source/cmMakefile.cxx
parentef62fbad55deedd4b985f0900f1ee983eaa0072d (diff)
downloadCMake-3f51752264bc1243fa2e56da41131ac363d3bd85.zip
CMake-3f51752264bc1243fa2e56da41131ac363d3bd85.tar.gz
CMake-3f51752264bc1243fa2e56da41131ac363d3bd85.tar.bz2
StoreMatches: Minor cleanups
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index b71e113..de329f0 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -4366,11 +4366,11 @@ void cmMakefile::StoreMatches(cmsys::RegularExpression& re)
{
for (unsigned int i=0; i<10; i++)
{
- std::string m = re.match(i);
- if(m.size() > 0)
+ std::string const& m = re.match(i);
+ if(!m.empty())
{
std::string const& var = matchVariables[i];
- this->AddDefinition(var, re.match(i).c_str());
+ this->AddDefinition(var, m.c_str());
this->MarkVariableAsUsed(var);
this->NumLastMatches = i + 1;
}