diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2017-12-09 03:30:16 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2017-12-09 03:30:16 (GMT) |
commit | c62ffdcd4f6f638a7d57221528ffbe112887c1b4 (patch) | |
tree | 53ff5991e05654bc9105a8a439e2058f8193d683 /Source/cmIDEOptions.h | |
parent | d25bcab161bfccb43cbeb43dfe96c805e2c27530 (diff) | |
download | CMake-c62ffdcd4f6f638a7d57221528ffbe112887c1b4.zip CMake-c62ffdcd4f6f638a7d57221528ffbe112887c1b4.tar.gz CMake-c62ffdcd4f6f638a7d57221528ffbe112887c1b4.tar.bz2 |
cmIDEOptions: use std::string instead of const char*
Revise method signatures to save a few c_str() conversions.
Diffstat (limited to 'Source/cmIDEOptions.h')
-rw-r--r-- | Source/cmIDEOptions.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmIDEOptions.h b/Source/cmIDEOptions.h index af03128..ded92ca 100644 --- a/Source/cmIDEOptions.h +++ b/Source/cmIDEOptions.h @@ -26,15 +26,15 @@ public: void AddDefines(const std::vector<std::string>& defines); std::vector<std::string> const& GetDefines() const; - void AddFlag(const char* flag, const char* value); - void AddFlag(const char* flag, std::vector<std::string> const& value); + void AddFlag(std::string const& flag, std::string const& value); + void AddFlag(std::string const& flag, std::vector<std::string> const& value); void AppendFlag(std::string const& flag, std::string const& value); void AppendFlag(std::string const& flag, std::vector<std::string> const& value); void AppendFlagString(std::string const& flag, std::string const& value); - void RemoveFlag(const char* flag); + void RemoveFlag(std::string const& flag); bool HasFlag(std::string const& flag) const; - const char* GetFlag(const char* flag); + const char* GetFlag(std::string const& flag) const; protected: // create a map of xml tags to the values they should have in the output |