mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-02 11:54:59 +03:00
Merge pull request #149 from f3nix/gcc-warnings-2
Fix GCC 8 warning: catching polymorphic type by value [-Wcatch-value=]
This commit is contained in:
@@ -1367,7 +1367,7 @@ QObject *BaseDesignIntf::createElement(const QString& /*collectionName*/, const
|
||||
obj = LimeReport::DesignElementsFactory::instance().objectCreator(elementType)(this, this);
|
||||
connect(obj,SIGNAL(propertyChanged(QString,QVariant,QVariant)),page(),SLOT(slotItemPropertyChanged(QString,QVariant,QVariant)));
|
||||
}
|
||||
} catch (ReportError error){
|
||||
} catch (ReportError &error){
|
||||
qDebug()<<error.what();
|
||||
}
|
||||
return obj;
|
||||
|
Reference in New Issue
Block a user