fix: more MSVC warnings (#5137)

This commit is contained in:
nerix
2024-01-30 17:28:36 +01:00
committed by GitHub
parent a5e853573f
commit 954e19817c
17 changed files with 59 additions and 47 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
#include "Application.hpp"
#include "common/Literals.hpp"
#include "common/Modes.hpp"
#include "common/QLogging.hpp"
#include "debug/AssertInGuiThread.hpp"
#include "providers/twitch/TwitchIrcServer.hpp"
@@ -40,7 +41,7 @@ void registerNmManifest(const Paths &paths, const QString &manifestFilename,
void registerNmHost(const Paths &paths)
{
if (paths.isPortable())
if (Modes::instance().isPortable)
{
return;
}
+1 -1
View File
@@ -86,7 +86,7 @@ void Paths::initRootDirectory()
this->rootAppDataDirectory = [&]() -> QString {
// portable
if (this->isPortable())
if (Modes::instance().isPortable)
{
return QCoreApplication::applicationDirPath();
}
+1 -1
View File
@@ -90,7 +90,7 @@ void Updates::installUpdates()
box->exec();
QDesktopServices::openUrl(this->updateGuideLink_);
#elif defined Q_OS_WIN
if (this->paths.isPortable())
if (Modes::instance().isPortable)
{
QMessageBox *box =
new QMessageBox(QMessageBox::Information, "Chatterino Update",