From d164f1102da4427b3ea6fff41bf3a4c8c913f74d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 26 Jun 2024 15:40:22 +0200 Subject: Fix deprecation warnings --- src/webview.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/webview.cpp b/src/webview.cpp index 7646324..55443b3 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -1,7 +1,6 @@ #include "webview.h" #include "nam.h" #include "global.h" -#include "settings.h" #include #include @@ -191,8 +190,8 @@ void WebView::reset(const QString baseUrl) q.addQueryItem("action", "browser"); QByteArray input; input.append((const char*)this, sizeof(*this)); - input.append(QString().sprintf("%d %d", QCursor::pos().x(), QCursor::pos().y())); - input.append(QString::number(QDateTime::currentMSecsSinceEpoch())); + input.append(QString::asprintf("%d %d", QCursor::pos().x(), QCursor::pos().y()).toUtf8()); + input.append(QString::number(QDateTime::currentMSecsSinceEpoch()).toUtf8()); _token = QCryptographicHash::hash(input, QCryptographicHash::Md5).left(8).toHex(); q.addQueryItem("token", _token); url.setQuery(q); -- cgit v1.2.3-55-g7522