0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 08:28:06 +03:00

Fix GCC 8 warning: catching polymorphic type by value [-Wcatch-value=]

This commit is contained in:
Mateusz Skowroński
2018-12-23 18:06:57 +01:00
parent 543710dc8b
commit 8b09176b59
3 changed files with 5 additions and 5 deletions

View File

@@ -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());