From 8b09176b592dc9a312f775f6da4a4385d1dbd38d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Skowro=C5=84ski?= Date: Sun, 23 Dec 2018 18:06:57 +0100 Subject: [PATCH] Fix GCC 8 warning: catching polymorphic type by value [-Wcatch-value=] --- limereport/lrbasedesignintf.cpp | 2 +- limereport/lrdatasourcemanager.cpp | 6 +++--- limereport/lrscriptenginemanager.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/limereport/lrbasedesignintf.cpp b/limereport/lrbasedesignintf.cpp index ba3b71d..0427d2b 100644 --- a/limereport/lrbasedesignintf.cpp +++ b/limereport/lrbasedesignintf.cpp @@ -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()<autoconnect()) { try { connectConnection(conn); - } catch(ReportError e){ + } catch(ReportError &e){ setLastError(e.what()); putError(e.what()); qDebug()<putError(e.what()); if (!dataManager()->reportSettings() || dataManager()->reportSettings()->suppressAbsentFieldsAndVarsWarnings()) context.replace(rx.cap(0),e.what());