diff options
Diffstat (limited to 'tracker-s2bot/ftnoir_tracker_s2bot.cpp')
-rw-r--r-- | tracker-s2bot/ftnoir_tracker_s2bot.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tracker-s2bot/ftnoir_tracker_s2bot.cpp b/tracker-s2bot/ftnoir_tracker_s2bot.cpp index c9d684aa..1034447e 100644 --- a/tracker-s2bot/ftnoir_tracker_s2bot.cpp +++ b/tracker-s2bot/ftnoir_tracker_s2bot.cpp @@ -7,6 +7,7 @@ #include <cmath> #include <QNetworkRequest> #include <QNetworkReply> +#include <QRegularExpression> tracker_s2bot::tracker_s2bot() : pose { 0,0,0, 0,0,0 }, m_nam (std::make_unique<QNetworkAccessManager>()) { @@ -48,7 +49,7 @@ void tracker_s2bot::run() { return; } - const QStringList slist = QString::fromLatin1(reply->readAll()).split(QRegExp("[\r\n]+"), QString::SkipEmptyParts); + const QStringList slist = QString::fromLatin1(reply->readAll()).split(QRegularExpression{"[\r\n]+"}, Qt::SkipEmptyParts); reply->close(); reply->deleteLater(); |