diff options
author | Simon Rettberg | 2024-06-26 15:40:22 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-06-26 15:40:22 +0200 |
commit | d164f1102da4427b3ea6fff41bf3a4c8c913f74d (patch) | |
tree | eca7942dff2419c891b56c163e9b27ffc0a73aad | |
parent | Make shibboleth whitelist a folder which can contain multiple files (diff) | |
download | slxgreeter-d164f1102da4427b3ea6fff41bf3a4c8c913f74d.tar.gz slxgreeter-d164f1102da4427b3ea6fff41bf3a4c8c913f74d.tar.xz slxgreeter-d164f1102da4427b3ea6fff41bf3a4c8c913f74d.zip |
Fix deprecation warnings
-rw-r--r-- | src/webview.cpp | 5 |
1 files 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 <QWebFrame> #include <QNetworkReply> @@ -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); |