summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-11-04 15:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-11-04 15:11:54 (GMT)
commitc7b50349de5e56d7584fa644832170d1e08ef62e (patch)
tree0fd42e52ae4cc439867b46b85664f0e1215690e4 /Source/cmSourceFile.h
parent622ac065d2abeb53de3548b7e4f3d9b5980dfa8d (diff)
downloadCMake-c7b50349de5e56d7584fa644832170d1e08ef62e.zip
CMake-c7b50349de5e56d7584fa644832170d1e08ef62e.tar.gz
CMake-c7b50349de5e56d7584fa644832170d1e08ef62e.tar.bz2
cmSourceFile::GetPropertyForUser: return cmProp
also fix GetSafeProperty() return type
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index 3196b3f..3ad2664 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -47,12 +47,12 @@ public:
//! Might return a nullptr if the property is not set or invalid
cmProp GetProperty(const std::string& prop) const;
//! Always returns a valid pointer
- const char* GetSafeProperty(const std::string& prop) const;
+ const std::string& GetSafeProperty(const std::string& prop) const;
bool GetPropertyAsBool(const std::string& prop) const;
/** Implement getting a property when called from a CMake language
command like get_property or get_source_file_property. */
- const char* GetPropertyForUser(const std::string& prop);
+ cmProp GetPropertyForUser(const std::string& prop);
//! Checks is the GENERATED property is set and true
/// @return Equivalent to GetPropertyAsBool("GENERATED")