diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-01-19 01:20:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-01-19 01:30:13 (GMT) |
commit | 2c50a725763eb2201f356852eab98dfdf9c27591 (patch) | |
tree | 4fcd6733fd674c3d03ee700f706fb4af2efae1b7 /Source/cmDependsC.h | |
parent | a61c061b6143cb6d8920b1b5796a867c0f104556 (diff) | |
download | CMake-2c50a725763eb2201f356852eab98dfdf9c27591.zip CMake-2c50a725763eb2201f356852eab98dfdf9c27591.tar.gz CMake-2c50a725763eb2201f356852eab98dfdf9c27591.tar.bz2 |
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDependsC.h b/Source/cmDependsC.h index f833888..af2b06e 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. |