summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-07 20:45:11 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-08 18:05:34 (GMT)
commit8455dd0a9a6c766870c7ddcb186e49a8a5db1416 (patch)
treeecfcfcd66beadb4df80ad6a22e88799f8e95234f /Source
parentc3833c7da40ccb03fc80bf10f37b77398d7123f8 (diff)
downloadCMake-8455dd0a9a6c766870c7ddcb186e49a8a5db1416.zip
CMake-8455dd0a9a6c766870c7ddcb186e49a8a5db1416.tar.gz
CMake-8455dd0a9a6c766870c7ddcb186e49a8a5db1416.tar.bz2
stringapi: Use strings for search paths
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakeDepend.cxx2
-rw-r--r--Source/cmMakeDepend.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx
index 615e6f2..03ad37c 100644
--- a/Source/cmMakeDepend.cxx
+++ b/Source/cmMakeDepend.cxx
@@ -359,7 +359,7 @@ std::string cmMakeDepend::FullPath(const char* fname, const char *extraPath)
}
// Add a directory to the search path
-void cmMakeDepend::AddSearchPath(const char* path)
+void cmMakeDepend::AddSearchPath(const std::string& path)
{
this->IncludeDirectories.push_back(path);
}
diff --git a/Source/cmMakeDepend.h b/Source/cmMakeDepend.h
index b6e3928..2419ae9 100644
--- a/Source/cmMakeDepend.h
+++ b/Source/cmMakeDepend.h
@@ -94,7 +94,7 @@ public:
/**
* Add a directory to the search path for include files.
*/
- virtual void AddSearchPath(const char*);
+ virtual void AddSearchPath(const std::string&);
/**
* Generate dependencies for the file given. Returns a pointer to