diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2013-06-18 17:41:50 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2013-06-24 14:43:20 (GMT) |
commit | 6dbd4a5f17db42d12cdddcdacf5f9bd4d67951d6 (patch) | |
tree | 7b2287bef1f05ba8e1a78a708f224eeb148b1361 /Source/cmMakefile.cxx | |
parent | 0bd82cb1a7be7492df0eb1d9ebb857dc246a0d6d (diff) | |
download | CMake-6dbd4a5f17db42d12cdddcdacf5f9bd4d67951d6.zip CMake-6dbd4a5f17db42d12cdddcdacf5f9bd4d67951d6.tar.gz CMake-6dbd4a5f17db42d12cdddcdacf5f9bd4d67951d6.tar.bz2 |
cmMakefile: Refactor AddCMakeDependFile and AddCMakeOutputFile.
AddCMakeDependFile and AddCMakeOutputFile both store as std::string
and all calling sites use std::string. So instead of creating more
temporary objects, lets just use std::strings.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 7d58d68..d5d99a0 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -3369,7 +3369,7 @@ int cmMakefile::ConfigureFile(const char* infile, const char* outfile, } std::string soutfile = outfile; std::string sinfile = infile; - this->AddCMakeDependFile(infile); + this->AddCMakeDependFile(sinfile); cmSystemTools::ConvertToUnixSlashes(soutfile); mode_t perm = 0; cmSystemTools::GetPermissions(sinfile.c_str(), perm); |