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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user