VarModelTable,TrendComponentModelTable: minor simplification

parent 58adbded
...@@ -101,7 +101,7 @@ private: ...@@ -101,7 +101,7 @@ private:
inline bool inline bool
TrendComponentModelTable::isExistingTrendComponentModelName(const string &name_arg) const TrendComponentModelTable::isExistingTrendComponentModelName(const string &name_arg) const
{ {
return names.find(name_arg) == names.end() ? false : true; return names.find(name_arg) != names.end();
} }
inline bool inline bool
...@@ -168,7 +168,7 @@ private: ...@@ -168,7 +168,7 @@ private:
inline bool inline bool
VarModelTable::isExistingVarModelName(const string &name_arg) const VarModelTable::isExistingVarModelName(const string &name_arg) const
{ {
return names.find(name_arg) == names.end() ? false : true; return names.find(name_arg) != names.end();
} }
inline bool inline bool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment