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.h | |
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.h')
-rw-r--r-- | Source/cmMakefile.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 0a87752..4297155 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -648,7 +648,7 @@ public: const std::vector<std::string>& GetListFiles() const { return this->ListFiles; } ///! When the file changes cmake will be re-run from the build system. - void AddCMakeDependFile(const char* file) + void AddCMakeDependFile(const std::string& file) { this->ListFiles.push_back(file);} /** @@ -666,7 +666,7 @@ public: */ const std::vector<std::string>& GetOutputFiles() const { return this->OutputFiles; } - void AddCMakeOutputFile(const char* file) + void AddCMakeOutputFile(const std::string& file) { this->OutputFiles.push_back(file);} /** |