summaryrefslogtreecommitdiff
path: root/Source/cmFindCommon.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-04 16:06:56 -0500
committerBrad King <brad.king@kitware.com>2014-03-08 13:05:28 -0500
commit3742bb0d324b971f63cc7e557b1cb8a9d08c5cdd (patch)
tree0259dae54801daae0f5823e335cc6b608328623d /Source/cmFindCommon.h
parentec97ed7d0c67b635caf3ada65541b2eaf0818a93 (diff)
downloadcmake-3742bb0d324b971f63cc7e557b1cb8a9d08c5cdd.tar.gz
stringapi: Use strings for variable names
Variable names are always generated by CMake and should never be NULL.
Diffstat (limited to 'Source/cmFindCommon.h')
-rw-r--r--Source/cmFindCommon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindCommon.h b/Source/cmFindCommon.h
index 6109a9fd4d..ba90a8498b 100644
--- a/Source/cmFindCommon.h
+++ b/Source/cmFindCommon.h
@@ -63,7 +63,7 @@ protected:
void AddPathSuffix(std::string const& arg);
void AddUserPath(std::string const& p,
std::vector<std::string>& paths);
- void AddCMakePath(const char* variable);
+ void AddCMakePath(const std::string& variable);
void AddEnvPath(const char* variable);
void AddPathsInternal(std::vector<std::string> const& in_paths,
PathType pathType);