mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 19:57:45 +00:00
Small warning changes in squarelauncher
This commit is contained in:
parent
ad04cf4519
commit
72338db4b9
2 changed files with 3 additions and 5 deletions
|
@ -10,7 +10,7 @@ public:
|
|||
|
||||
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);
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
#include <QDesktopServices>
|
||||
#include <QFile>
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
#include <QMessageBox>
|
||||
#include <QNetworkReply>
|
||||
#include <QPushButton>
|
||||
|
@ -18,7 +16,7 @@
|
|||
|
||||
SquareLauncher::SquareLauncher(LauncherCore& window) : window(window), QObject(&window) {}
|
||||
|
||||
QString getFileHash(QString file) {
|
||||
QString getFileHash(const QString& file) {
|
||||
auto f = QFile(file);
|
||||
if (!f.open(QIODevice::ReadOnly))
|
||||
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;
|
||||
postData.addQueryItem("_STORED_", stored);
|
||||
postData.addQueryItem("sqexid", info.username);
|
||||
|
|
Loading…
Add table
Reference in a new issue