summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-06-10 17:07:12 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2014-07-17 15:17:52 (GMT)
commitbcb6dbc1cb0bfeb0627c0b48ced41beea9d4c51a (patch)
treeab0acc84bd0701bf42e7e774cf092c27978d0b6f /Source/cmTarget.cxx
parent679f3deeb79a7b19fb47b96bb520817c1c529f36 (diff)
downloadCMake-bcb6dbc1cb0bfeb0627c0b48ced41beea9d4c51a.zip
CMake-bcb6dbc1cb0bfeb0627c0b48ced41beea9d4c51a.tar.gz
CMake-bcb6dbc1cb0bfeb0627c0b48ced41beea9d4c51a.tar.bz2
cmTarget: help the optimizer a bit
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 155232d..843761f 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -224,7 +224,7 @@ public:
cmLinkImplItem cmTargetInternals::TargetPropertyEntry::NoLinkImplItem;
//----------------------------------------------------------------------------
-void deleteAndClear(
+static void deleteAndClear(
std::vector<cmTargetInternals::TargetPropertyEntry*> &entries)
{
for (std::vector<cmTargetInternals::TargetPropertyEntry*>::const_iterator
@@ -238,7 +238,7 @@ void deleteAndClear(
}
//----------------------------------------------------------------------------
-void deleteAndClear(
+static void deleteAndClear(
std::map<std::string,
std::vector<cmTargetInternals::TargetPropertyEntry*> > &entries)
{
@@ -2299,7 +2299,7 @@ static void processCompileOptionsInternal(cmTarget const* tgt,
for(std::vector<std::string>::iterator
li = entryOptions->begin(); li != entryOptions->end(); ++li)
{
- std::string opt = *li;
+ std::string const& opt = *li;
if(uniqueOptions.insert(opt).second)
{