mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
Fix GCC 8 warning: catching polymorphic type by value [-Wcatch-value=]
This commit is contained in:
parent
543710dc8b
commit
8b09176b59
@ -1372,7 +1372,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;
|
||||
|
@ -307,7 +307,7 @@ void DataSourceManager::connectAllDatabases()
|
||||
foreach(ConnectionDesc* conn,m_connections){
|
||||
try{
|
||||
connectConnection(conn);
|
||||
} catch (ReportError e){
|
||||
} catch (ReportError &e){
|
||||
putError(e.what());
|
||||
setLastError(e.what());
|
||||
qDebug()<<e.what();
|
||||
@ -323,7 +323,7 @@ bool DataSourceManager::addModel(const QString &name, QAbstractItemModel *model,
|
||||
try{
|
||||
putHolder(name, mh);
|
||||
connect(mh, SIGNAL(modelStateChanged()), this, SIGNAL(datasourcesChanged()));
|
||||
} catch (ReportError e){
|
||||
} catch (ReportError &e){
|
||||
putError(e.what());
|
||||
setLastError(e.what());
|
||||
return false;
|
||||
@ -871,7 +871,7 @@ void DataSourceManager::connectAutoConnections()
|
||||
if (conn->autoconnect()) {
|
||||
try {
|
||||
connectConnection(conn);
|
||||
} catch(ReportError e){
|
||||
} catch(ReportError &e){
|
||||
setLastError(e.what());
|
||||
putError(e.what());
|
||||
qDebug()<<e.what();
|
||||
|
@ -383,7 +383,7 @@ QString ScriptEngineManager::expandUserVariables(QString context, RenderPass /*
|
||||
}
|
||||
pos=0;
|
||||
|
||||
} catch (ReportError e){
|
||||
} catch (ReportError &e){
|
||||
dataManager()->putError(e.what());
|
||||
if (!dataManager()->reportSettings() || dataManager()->reportSettings()->suppressAbsentFieldsAndVarsWarnings())
|
||||
context.replace(rx.cap(0),e.what());
|
||||
|
Loading…
Reference in New Issue
Block a user