0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-09 05:57:14 +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:
fralx
2019-02-06 00:30:24 +03:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -308,7 +308,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();
@@ -324,7 +324,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;
@@ -893,7 +893,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();