summaryrefslogtreecommitdiffstats
path: root/Source/cmStateDirectory.h
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-27 16:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-27 16:33:04 (GMT)
commita4255ecf813120e4b764e78e6c50b34bd87b438a (patch)
tree303f653857feafbb552ef930d9f58d36dab87253 /Source/cmStateDirectory.h
parentf6704357159366fc404491e02f1ea6cee87f0989 (diff)
downloadCMake-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.h6
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;