diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-02-26 11:24:45 -0500 |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-02-26 11:24:45 -0500 |
commit | 8182ebca32a42c157697d6afdc07678afed1443d (patch) | |
tree | cb2037f156e21579082511e8d470731009485028 /Source/cmIDEOptions.h | |
parent | f7430b2538211ea59d5a853148de3b282796bf6a (diff) | |
download | cmake-8182ebca32a42c157697d6afdc07678afed1443d.tar.gz |
cmIDEOptions: use std::string
Diffstat (limited to 'Source/cmIDEOptions.h')
-rw-r--r-- | Source/cmIDEOptions.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/cmIDEOptions.h b/Source/cmIDEOptions.h index 54cb52446c..a4e5757808 100644 --- a/Source/cmIDEOptions.h +++ b/Source/cmIDEOptions.h @@ -22,12 +22,12 @@ public: // Store definitions, includes and flags. void AddDefine(const std::string& define); - void AddDefines(const char* defines); + void AddDefines(std::string const& defines); void AddDefines(const std::vector<std::string>& defines); std::vector<std::string> const& GetDefines() const; void AddInclude(const std::string& includes); - void AddIncludes(const char* includes); + void AddIncludes(std::string const& includes); void AddIncludes(const std::vector<std::string>& includes); std::vector<std::string> const& GetIncludes() const; @@ -95,11 +95,12 @@ protected: FlagTableCount = 16 }; cmIDEFlagTable const* FlagTable[FlagTableCount]; - void HandleFlag(const char* flag); - bool CheckFlagTable(cmIDEFlagTable const* table, const char* flag, + void HandleFlag(std::string const& flag); + bool CheckFlagTable(cmIDEFlagTable const* table, std::string const& flag, bool& flag_handled); - void FlagMapUpdate(cmIDEFlagTable const* entry, const char* new_value); - virtual void StoreUnknownFlag(const char* flag) = 0; + void FlagMapUpdate(cmIDEFlagTable const* entry, + std::string const& new_value); + virtual void StoreUnknownFlag(std::string const& flag) = 0; }; #endif |