+ make isReadOnly & isHidden of PropertyContainer non-virtual

This commit is contained in:
wmayer
2015-11-14 02:07:57 +01:00
parent 68fc3b5917
commit 0cddf520d0
8 changed files with 37 additions and 46 deletions

View File

@@ -217,7 +217,8 @@ void PropertyModel::buildUp(const PropertyModel::PropertyList& props)
for (jt = props.begin(); jt != props.end(); ++jt) {
App::Property* prop = jt->second.front();
const char* group = prop->getGroup();
std::string grp = group ? group : "Base";
bool isEmpty = (group == 0 || group[0] == '\0');
std::string grp = isEmpty ? "Base" : group;
propGroup[grp].push_back(jt->second);
}