Renamed caf::PdmXmlObjectHandle::isOfClassKeyword to ::inheritsClassWithKeyword

This commit is contained in:
Gaute Lindkvist
2019-10-09 09:26:30 +02:00
parent 11117383db
commit 2961782be1
4 changed files with 12 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ void PdmObject::firstAncestorOrThisFromClassKeyword(
ancestor = nullptr;
// Check if this matches the type
if (this->classKeyword() == classKeyword)
if (this->inheritsClassWithKeyword(classKeyword))
{
ancestor = const_cast<PdmObject*>(this);
return;
@@ -25,7 +25,7 @@ void PdmObject::firstAncestorOrThisFromClassKeyword(
while (parent != nullptr)
{
if (parent->isOfClassKeywordType(classKeyword))
if (parent->inheritsClassWithKeyword(classKeyword))
{
ancestor = parent;
return;
@@ -51,7 +51,7 @@ void PdmObject::descendantsIncludingThisFromClassKeyword(
const QString& classKeyword,
std::vector<PdmObject*>& descendants) const
{
if (this->isOfClassKeywordType(classKeyword))
if (this->inheritsClassWithKeyword(classKeyword))
{
descendants.push_back(const_cast<PdmObject*>(this));
}