summaryrefslogtreecommitdiff
path: root/Source/cmPropertyDefinitionMap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmPropertyDefinitionMap.cxx')
-rw-r--r--Source/cmPropertyDefinitionMap.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmPropertyDefinitionMap.cxx b/Source/cmPropertyDefinitionMap.cxx
index ebc2caa3b1..0ba35e716a 100644
--- a/Source/cmPropertyDefinitionMap.cxx
+++ b/Source/cmPropertyDefinitionMap.cxx
@@ -31,12 +31,7 @@ void cmPropertyDefinitionMap::DefineProperty(const std::string& name,
bool cmPropertyDefinitionMap::IsPropertyDefined(const std::string& name) const
{
- cmPropertyDefinitionMap::const_iterator it = this->find(name);
- if (it == this->end()) {
- return false;
- }
-
- return true;
+ return this->find(name) != this->end();
}
bool cmPropertyDefinitionMap::IsPropertyChained(const std::string& name) const