summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-09-10 13:31:48 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2018-09-10 13:31:48 (GMT)
commit13d10ee61642ab384d506fa81a991e51d90c6488 (patch)
tree3ab63ba839614280a3a9c6b5e37827b46bc24b33 /Source/QtDialog
parent11de1492d3d96f4527990aee212cd94c944c6f64 (diff)
downloadCMake-13d10ee61642ab384d506fa81a991e51d90c6488.zip
CMake-13d10ee61642ab384d506fa81a991e51d90c6488.tar.gz
CMake-13d10ee61642ab384d506fa81a991e51d90c6488.tar.bz2
cmState::GetInitializedCacheValue: Return as const std::string*
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/QCMake.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx
index 0e14a3f..0133b88 100644
--- a/Source/QtDialog/QCMake.cxx
+++ b/Source/QtDialog/QCMake.cxx
@@ -94,11 +94,11 @@ void QCMake::setBinaryDirectory(const QString& _dir)
}
const char* gen = state->GetCacheEntryValue("CMAKE_GENERATOR");
if (gen) {
- const char* extraGen =
+ const std::string* extraGen =
state->GetInitializedCacheValue("CMAKE_EXTRA_GENERATOR");
std::string curGen =
cmExternalMakefileProjectGenerator::CreateFullGeneratorName(
- gen, extraGen ? extraGen : "");
+ gen, extraGen ? *extraGen : "");
this->setGenerator(QString::fromLocal8Bit(curGen.c_str()));
}