summaryrefslogtreecommitdiff
path: root/Source/cmExtraCodeBlocksGenerator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2019-02-06 17:44:53 -0500
committerVitaly Stakhovsky <vvs31415@gitlab.org>2019-02-07 07:35:16 -0500
commit00ba28ffd03a9a0cf00d78001573bc5cc045ee72 (patch)
treebb8c241b1938470badd41ecf2499a48317b11e1d /Source/cmExtraCodeBlocksGenerator.cxx
parent0741eda2468e482baf1b5ff6a3a8d376143171e4 (diff)
downloadcmake-00ba28ffd03a9a0cf00d78001573bc5cc045ee72.tar.gz
cmMakefile::GetRequiredDefinition: return const std::string&
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index e408de3848..d9ae4eb5e9 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -247,8 +247,8 @@ void cmExtraCodeBlocksGenerator::CreateNewProjectFile(
// figure out the compiler
std::string compiler = this->GetCBCompilerId(mf);
- std::string make = mf->GetRequiredDefinition("CMAKE_MAKE_PROGRAM");
- const std::string makeArgs =
+ const std::string& make = mf->GetRequiredDefinition("CMAKE_MAKE_PROGRAM");
+ const std::string& makeArgs =
mf->GetSafeDefinition("CMAKE_CODEBLOCKS_MAKE_ARGUMENTS");
cmXMLWriter xml(fout);