summaryrefslogtreecommitdiff
path: root/Source/cmTest.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2013-09-02 16:27:32 -0400
committerBrad King <brad.king@kitware.com>2014-03-08 13:05:28 -0500
commitec97ed7d0c67b635caf3ada65541b2eaf0818a93 (patch)
tree9b38ed2ca59f7da24dfc0db503d9e203ed265fb4 /Source/cmTest.h
parent2977330a7b27d21e2b6276d9386624b6811b9274 (diff)
downloadcmake-ec97ed7d0c67b635caf3ada65541b2eaf0818a93.tar.gz
stringapi: Use strings for property names
Property names are always generated by CMake and should never be NULL.
Diffstat (limited to 'Source/cmTest.h')
-rw-r--r--Source/cmTest.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmTest.h b/Source/cmTest.h
index 1fe8fc0cc2..1becbf79e8 100644
--- a/Source/cmTest.h
+++ b/Source/cmTest.h
@@ -46,10 +46,11 @@ public:
void Print() const;
///! Set/Get a property of this source file
- void SetProperty(const char *prop, const char *value);
- void AppendProperty(const char* prop, const char* value,bool asString=false);
- const char *GetProperty(const char *prop) const;
- bool GetPropertyAsBool(const char *prop) const;
+ void SetProperty(const std::string& prop, const char *value);
+ void AppendProperty(const std::string& prop,
+ const char* value,bool asString=false);
+ const char *GetProperty(const std::string& prop) const;
+ bool GetPropertyAsBool(const std::string& prop) const;
cmPropertyMap &GetProperties() { return this->Properties; };
/** Get the cmMakefile instance that owns this test. */