diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-27 16:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-27 16:33:04 (GMT) |
commit | a4255ecf813120e4b764e78e6c50b34bd87b438a (patch) | |
tree | 303f653857feafbb552ef930d9f58d36dab87253 /Source/cmStateDirectory.h | |
parent | f6704357159366fc404491e02f1ea6cee87f0989 (diff) | |
download | CMake-a4255ecf813120e4b764e78e6c50b34bd87b438a.zip CMake-a4255ecf813120e4b764e78e6c50b34bd87b438a.tar.gz CMake-a4255ecf813120e4b764e78e6c50b34bd87b438a.tar.bz2 |
cmStateDirectory::GetProperty: return cmProp
Diffstat (limited to 'Source/cmStateDirectory.h')
-rw-r--r-- | Source/cmStateDirectory.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmStateDirectory.h b/Source/cmStateDirectory.h index 53a2d54..8144160 100644 --- a/Source/cmStateDirectory.h +++ b/Source/cmStateDirectory.h @@ -16,6 +16,8 @@ #include "cmStateSnapshot.h" #include "cmStringAlgorithms.h" +using cmProp = const std::string*; + class cmStateDirectory { cmStateDirectory( @@ -86,8 +88,8 @@ public: cmListFileBacktrace const& lfbt); void AppendProperty(const std::string& prop, const std::string& value, bool asString, cmListFileBacktrace const& lfbt); - const char* GetProperty(const std::string& prop) const; - const char* GetProperty(const std::string& prop, bool chain) const; + cmProp GetProperty(const std::string& prop) const; + cmProp GetProperty(const std::string& prop, bool chain) const; bool GetPropertyAsBool(const std::string& prop) const; std::vector<std::string> GetPropertyKeys() const; |