From eb966d6d8433210a39f274be382830d701864aab Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Fri, 1 Dec 2017 07:12:05 +0100 Subject: [PATCH] Fixed invalid exception pointer usage - fixes #165. --- resources/binaries | 2 +- src/services/standard/atomparser.cpp | 2 +- src/services/standard/rssparser.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/binaries b/resources/binaries index ae7084718..4a01edaec 160000 --- a/resources/binaries +++ b/resources/binaries @@ -1 +1 @@ -Subproject commit ae7084718c41afc01919779e58cd449e0eebd401 +Subproject commit 4a01edaec7d67d3b2ae81aeea2a3c876216fbab8 diff --git a/src/services/standard/atomparser.cpp b/src/services/standard/atomparser.cpp index a1d4ac505..d973d86ab 100755 --- a/src/services/standard/atomparser.cpp +++ b/src/services/standard/atomparser.cpp @@ -52,7 +52,7 @@ Message AtomParser::extractMessage(const QDomElement& msg_element, QDateTime cur // Now we obtained maximum of information for title & description. if (title.isEmpty() && summary.isEmpty()) { // BOTH title and description are empty, skip this message. - throw new ApplicationException(QSL("Not enough data for the message.")); + throw ApplicationException(QSL("Not enough data for the message.")); } // Title is not empty, description does not matter. diff --git a/src/services/standard/rssparser.cpp b/src/services/standard/rssparser.cpp index 6a22d3878..97677b704 100755 --- a/src/services/standard/rssparser.cpp +++ b/src/services/standard/rssparser.cpp @@ -42,7 +42,7 @@ Message RssParser::extractMessage(const QDomElement& msg_element, QDateTime curr if (elem_title.isEmpty()) { if (elem_description.isEmpty()) { // BOTH title and description are empty, skip this message. - throw new ApplicationException(QSL("Not enough data for the message.")); + throw ApplicationException(QSL("Not enough data for the message.")); } else { // Title is empty but description is not.