Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
This commit is contained in:
@@ -685,7 +685,7 @@ void QGIViewPart::drawAllSectionLines()
|
||||
if (vp->ShowSectionLine.getValue()) {
|
||||
auto refs = viewPart->getSectionRefs();
|
||||
for (auto& r : refs) {
|
||||
if (r->isDerivedFrom(DrawComplexSection::getClassTypeId())) {
|
||||
if (r->isDerivedFrom<DrawComplexSection>()) {
|
||||
drawComplexSectionLine(r, true);
|
||||
}
|
||||
else {
|
||||
@@ -1010,7 +1010,7 @@ void QGIViewPart::drawMatting()
|
||||
{
|
||||
auto viewPart(dynamic_cast<TechDraw::DrawViewPart*>(getViewObject()));
|
||||
TechDraw::DrawViewDetail* dvd = nullptr;
|
||||
if (viewPart && viewPart->isDerivedFrom(TechDraw::DrawViewDetail::getClassTypeId())) {
|
||||
if (viewPart && viewPart->isDerivedFrom<TechDraw::DrawViewDetail>()) {
|
||||
dvd = static_cast<TechDraw::DrawViewDetail*>(viewPart);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user