From bcb6dbc1cb0bfeb0627c0b48ced41beea9d4c51a Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 10 Jun 2014 13:07:12 -0400 Subject: [PATCH] cmTarget: help the optimizer a bit --- Source/cmTarget.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 155232dd4b..843761f32f 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 &entries) { for (std::vector::const_iterator @@ -238,7 +238,7 @@ void deleteAndClear( } //---------------------------------------------------------------------------- -void deleteAndClear( +static void deleteAndClear( std::map > &entries) { @@ -2299,7 +2299,7 @@ static void processCompileOptionsInternal(cmTarget const* tgt, for(std::vector::iterator li = entryOptions->begin(); li != entryOptions->end(); ++li) { - std::string opt = *li; + std::string const& opt = *li; if(uniqueOptions.insert(opt).second) {