summaryrefslogtreecommitdiff
path: root/Source/cmDependsC.h
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2019-01-18 20:20:00 -0500
committerVitaly Stakhovsky <vvs31415@gitlab.org>2019-01-18 20:30:13 -0500
commit2c50a725763eb2201f356852eab98dfdf9c27591 (patch)
tree4fcd6733fd674c3d03ee700f706fb4af2efae1b7 /Source/cmDependsC.h
parenta61c061b6143cb6d8920b1b5796a867c0f104556 (diff)
downloadcmake-2c50a725763eb2201f356852eab98dfdf9c27591.tar.gz
cmDepends: all members accept std::string arguments
Most `const char*` arguments converted to `const std::string&` in `cmDepends` and derived classes. In addition performed minor code cleanup.
Diffstat (limited to 'Source/cmDependsC.h')
-rw-r--r--Source/cmDependsC.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDependsC.h b/Source/cmDependsC.h
index f833888b87..af2b06e19a 100644
--- a/Source/cmDependsC.h
+++ b/Source/cmDependsC.h
@@ -28,7 +28,7 @@ public:
/** Checking instances need to know the build directory name and the
relative path from the build directory to the target file. */
cmDependsC();
- cmDependsC(cmLocalGenerator* lg, const char* targetDir,
+ cmDependsC(cmLocalGenerator* lg, const std::string& targetDir,
const std::string& lang,
const std::map<std::string, DependencyVector>* validDeps);
@@ -42,7 +42,7 @@ protected:
std::ostream& internalDepends) override;
// Method to scan a single file.
- void Scan(std::istream& is, const char* directory,
+ void Scan(std::istream& is, const std::string& directory,
const std::string& fullName);
// Regular expression to identify C preprocessor include directives.