stringapi: Use strings for property names

Property names are always generated by CMake and should never be NULL.
This commit is contained in:
Ben Boeckel
2013-09-02 16:27:32 -04:00
committed by Brad King
parent 2977330a7b
commit ec97ed7d0c
32 changed files with 262 additions and 310 deletions
+3 -3
View File
@@ -21,16 +21,16 @@ public std::map<cmStdString,cmPropertyDefinition>
{
public:
// define the property
void DefineProperty(const char *name, cmProperty::ScopeType scope,
void DefineProperty(const cmStdString& name, cmProperty::ScopeType scope,
const char *ShortDescription,
const char *FullDescription,
bool chain);
// has a named property been defined
bool IsPropertyDefined(const char *name);
bool IsPropertyDefined(const cmStdString& name);
// is a named property set to chain
bool IsPropertyChained(const char *name);
bool IsPropertyChained(const cmStdString& name);
};
#endif