1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 04:07:46 +00:00

Small warning changes in squarelauncher

This commit is contained in:
Joshua Goins 2022-09-05 15:52:44 -04:00
parent ad04cf4519
commit 72338db4b9
2 changed files with 3 additions and 5 deletions

View file

@ -10,7 +10,7 @@ public:
void getStored(const LoginInformation& info); void getStored(const LoginInformation& info);
void login(const LoginInformation& info, QUrl referer); void login(const LoginInformation& info, const QUrl& referer);
void registerSession(const LoginInformation& info); void registerSession(const LoginInformation& info);

View file

@ -2,8 +2,6 @@
#include <QDesktopServices> #include <QDesktopServices>
#include <QFile> #include <QFile>
#include <QJsonDocument>
#include <QJsonObject>
#include <QMessageBox> #include <QMessageBox>
#include <QNetworkReply> #include <QNetworkReply>
#include <QPushButton> #include <QPushButton>
@ -18,7 +16,7 @@
SquareLauncher::SquareLauncher(LauncherCore& window) : window(window), QObject(&window) {} SquareLauncher::SquareLauncher(LauncherCore& window) : window(window), QObject(&window) {}
QString getFileHash(QString file) { QString getFileHash(const QString& file) {
auto f = QFile(file); auto f = QFile(file);
if (!f.open(QIODevice::ReadOnly)) if (!f.open(QIODevice::ReadOnly))
return ""; return "";
@ -92,7 +90,7 @@ void SquareLauncher::getStored(const LoginInformation& info) {
}); });
} }
void SquareLauncher::login(const LoginInformation& info, const QUrl referer) { void SquareLauncher::login(const LoginInformation& info, const QUrl& referer) {
QUrlQuery postData; QUrlQuery postData;
postData.addQueryItem("_STORED_", stored); postData.addQueryItem("_STORED_", stored);
postData.addQueryItem("sqexid", info.username); postData.addQueryItem("sqexid", info.username);