Fixed invalid exception pointer usage - fixes #165.

This commit is contained in:
Martin Rotter 2017-12-01 07:12:05 +01:00
parent 5fba019235
commit eb966d6d84
3 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit ae7084718c41afc01919779e58cd449e0eebd401
Subproject commit 4a01edaec7d67d3b2ae81aeea2a3c876216fbab8

View File

@ -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.

View File

@ -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.