diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-07-19 08:38:54 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-07-24 09:11:25 (GMT) |
commit | 9b5cc4253135c7811936b05525e013e04a390d02 (patch) | |
tree | 08509cdff27333c66e26d8a55a171aeb7c1ebdc1 /Source/cmStateSnapshot.h | |
parent | e268840c0a5db59f97c0fbc77aaae621520b83a3 (diff) | |
download | CMake-9b5cc4253135c7811936b05525e013e04a390d02.zip CMake-9b5cc4253135c7811936b05525e013e04a390d02.tar.gz CMake-9b5cc4253135c7811936b05525e013e04a390d02.tar.bz2 |
cmDefinitions: Remove const char* based Set method
- Removes `cmDefinitions::Set` method overload that takes a `const char*`
value argument.
- Updates calls to `cmDefinitions::Set` to use the `cm::string_view` based
version instead.
Diffstat (limited to 'Source/cmStateSnapshot.h')
-rw-r--r-- | Source/cmStateSnapshot.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmStateSnapshot.h b/Source/cmStateSnapshot.h index c315f48..da39127 100644 --- a/Source/cmStateSnapshot.h +++ b/Source/cmStateSnapshot.h @@ -9,6 +9,8 @@ #include <string> #include <vector> +#include "cm_string_view.hxx" + #include "cmLinkedTree.h" #include "cmPolicies.h" #include "cmStateTypes.h" @@ -24,7 +26,7 @@ public: std::string const* GetDefinition(std::string const& name) const; bool IsInitialized(std::string const& name) const; - void SetDefinition(std::string const& name, std::string const& value); + void SetDefinition(std::string const& name, cm::string_view value); void RemoveDefinition(std::string const& name); std::vector<std::string> UnusedKeys() const; std::vector<std::string> ClosureKeys() const; |