Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
This commit is contained in:
@@ -1603,7 +1603,7 @@ void ExpLineEdit::onChange() {
|
||||
|
||||
if (getExpression()) {
|
||||
std::unique_ptr<Expression> result(getExpression()->eval());
|
||||
if(result->isDerivedFrom(App::StringExpression::getClassTypeId()))
|
||||
if(result->isDerivedFrom<App::StringExpression>())
|
||||
setText(QString::fromUtf8(static_cast<App::StringExpression*>(
|
||||
result.get())->getText().c_str()));
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user