summaryrefslogtreecommitdiff
path: root/Source/cmStateSnapshot.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-08-04 15:08:17 +0200
committerMarc Chevrier <marc.chevrier@gmail.com>2021-08-08 16:19:08 +0200
commite5cd39ca80c8c234118ded33a1576c1be281aa9e (patch)
tree0494dad04188959dd6cefc9497688718ff88006b /Source/cmStateSnapshot.h
parent350065bb855a26692ed6af04870f144ae1f6a886 (diff)
downloadcmake-e5cd39ca80c8c234118ded33a1576c1be281aa9e.tar.gz
cmProp: refactoring: transform alias in class
To handle safely the values used by CMake variables and properties, introduce the class cmProp as a replacement from the simple pointer to std::string instance.
Diffstat (limited to 'Source/cmStateSnapshot.h')
-rw-r--r--Source/cmStateSnapshot.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmStateSnapshot.h b/Source/cmStateSnapshot.h
index d06cba37a8..a5fe7e20cc 100644
--- a/Source/cmStateSnapshot.h
+++ b/Source/cmStateSnapshot.h
@@ -12,6 +12,7 @@
#include "cmLinkedTree.h"
#include "cmPolicies.h"
+#include "cmProperty.h"
#include "cmStateTypes.h"
class cmState;
@@ -23,7 +24,7 @@ public:
cmStateSnapshot(cmState* state = nullptr);
cmStateSnapshot(cmState* state, cmStateDetail::PositionType position);
- std::string const* GetDefinition(std::string const& name) const;
+ cmProp GetDefinition(std::string const& name) const;
bool IsInitialized(std::string const& name) const;
void SetDefinition(std::string const& name, cm::string_view value);
void RemoveDefinition(std::string const& name);