summaryrefslogtreecommitdiffstats
path: root/Source/cmExportCommand.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-08-24 17:58:19 (GMT)
committerBrad King <brad.king@kitware.com>2018-08-27 18:07:43 (GMT)
commitc8fd23ec6f33eef8cf11d81938c379590080bd19 (patch)
tree75a04f4a2a037ededbee0a92628c103af03fc816 /Source/cmExportCommand.cxx
parent0897c3cf585853358ef7ec2bd180dbb2e3288b21 (diff)
downloadCMake-c8fd23ec6f33eef8cf11d81938c379590080bd19.zip
CMake-c8fd23ec6f33eef8cf11d81938c379590080bd19.tar.gz
CMake-c8fd23ec6f33eef8cf11d81938c379590080bd19.tar.bz2
cmMakefile: return directories as const std::string&
Diffstat (limited to 'Source/cmExportCommand.cxx')
-rw-r--r--Source/cmExportCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmExportCommand.cxx b/Source/cmExportCommand.cxx
index c6ec5bf..f965a29 100644
--- a/Source/cmExportCommand.cxx
+++ b/Source/cmExportCommand.cxx
@@ -254,12 +254,12 @@ bool cmExportCommand::HandlePackage(std::vector<std::string> const& args)
// We store the current build directory in the registry as a value
// named by a hash of its own content. This is deterministic and is
// unique with high probability.
- const char* outDir = this->Makefile->GetCurrentBinaryDirectory();
+ const std::string& outDir = this->Makefile->GetCurrentBinaryDirectory();
std::string hash = cmSystemTools::ComputeStringMD5(outDir);
#if defined(_WIN32) && !defined(__CYGWIN__)
- this->StorePackageRegistryWin(package, outDir, hash.c_str());
+ this->StorePackageRegistryWin(package, outDir.c_str(), hash.c_str());
#else
- this->StorePackageRegistryDir(package, outDir, hash.c_str());
+ this->StorePackageRegistryDir(package, outDir.c_str(), hash.c_str());
#endif
return true;