summaryrefslogtreecommitdiff
path: root/Decoder
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2020-06-26 09:28:37 +0200
committerChristoph Berg <christoph.berg@credativ.de>2020-06-26 11:49:13 +0200
commit9990285acbfa40ec4478d46d9f542d227126239b (patch)
treed8f012d37c627d3d6a821bfb3be98c3e30c17718 /Decoder
parent0e845413c25b8eddc8d6d701b9b6c5af29b2bde8 (diff)
New upstream version 2.2.2+repack
Diffstat (limited to 'Decoder')
-rw-r--r--Decoder/decodedtext.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Decoder/decodedtext.cpp b/Decoder/decodedtext.cpp
index 7d5a57e8..e476ecb9 100644
--- a/Decoder/decodedtext.cpp
+++ b/Decoder/decodedtext.cpp
@@ -3,6 +3,7 @@
#include <QStringList>
#include <QRegularExpression>
#include <QDebug>
+#include "qt_helpers.hpp"
extern "C" {
bool stdmsg_(char const * msg, fortran_charlen_t);
@@ -58,7 +59,7 @@ QStringList DecodedText::messageWords () const
return words_re.match(t).capturedTexts();
}
// simple word split for free text messages
- auto words = message_.split (' ', QString::SkipEmptyParts);
+ auto words = message_.split (' ', SkipEmptyParts);
// add whole message as item 0 to mimic RE capture list
words.prepend (message_);
return words;
@@ -122,7 +123,7 @@ bool DecodedText::report(QString const& myBaseCall, QString const& dxBaseCall, /
{
if (message_.size () < 1) return false;
- QStringList const& w = message_.split(" ",QString::SkipEmptyParts);
+ QStringList const& w = message_.split(" ", SkipEmptyParts);
if (w.size ()
&& is_standard_ && (w[0] == myBaseCall
|| w[0].endsWith ("/" + myBaseCall)