summaryrefslogtreecommitdiff
path: root/Source/cmDepends.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-03 21:20:56 -0500
committerBrad King <brad.king@kitware.com>2014-03-08 13:05:30 -0500
commitce5114354c357df973e54872ab7abebbff36793b (patch)
tree472c096db98ba5b36c7c32910a334a044ecafd80 /Source/cmDepends.h
parent83a5e453f8c0dc0fc9b6bdee9723478aafefd0da (diff)
downloadcmake-ce5114354c357df973e54872ab7abebbff36793b.tar.gz
stringapi: Use strings for the languages
Diffstat (limited to 'Source/cmDepends.h')
-rw-r--r--Source/cmDepends.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDepends.h b/Source/cmDepends.h
index d787eddc6f..b293c5ba7b 100644
--- a/Source/cmDepends.h
+++ b/Source/cmDepends.h
@@ -41,7 +41,7 @@ public:
void SetLocalGenerator(cmLocalGenerator* lg) { this->LocalGenerator = lg; }
/** Set the specific language to be scanned. */
- void SetLanguage(const char* lang) { this->Language = lang; }
+ void SetLanguage(const std::string& lang) { this->Language = lang; }
/** Set the target build directory. */
void SetTargetDirectory(const char* dir) { this->TargetDirectory = dir; }
@@ -114,7 +114,7 @@ protected:
// The include file search path.
std::vector<std::string> IncludePath;
- void SetIncludePathFromLanguage(const char* lang);
+ void SetIncludePathFromLanguage(const std::string& lang);
private:
cmDepends(cmDepends const&); // Purposely not implemented.