From 1f4c640829fae31101a5f32822cc03d17f08d8da Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Sat, 20 Feb 2016 12:05:57 +0300 Subject: [PATCH] fix #10 Non-void function should return a value. lrreportengine.cpp line 523 --- src/lrreportengine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lrreportengine.cpp b/src/lrreportengine.cpp index 373e627..fcb482a 100644 --- a/src/lrreportengine.cpp +++ b/src/lrreportengine.cpp @@ -518,8 +518,9 @@ ReportPages ReportEnginePrivate::renderToPages() ReportPages result = m_reportRender->renderPageToPages(m_pages.at(0)); emit renderFinished(); return result; - }else return ReportPages(); - m_reportRender.clear(); + }else { + return ReportPages(); + } } QString ReportEnginePrivate::lastError()