mirror of
https://github.com/huderlem/porymap.git
synced 2026-03-21 17:45:44 -05:00
Silence unused result warnings for QFile::open
Some checks failed
Build Porymap / build-linux (5.14.2) (push) Has been cancelled
Build Porymap / build-linux (6.8.*) (push) Has been cancelled
Build Porymap / build-macos (macos-15-intel) (push) Has been cancelled
Build Porymap / build-macos (macos-latest) (push) Has been cancelled
Build Porymap / build-static-windows (push) Has been cancelled
Some checks failed
Build Porymap / build-linux (5.14.2) (push) Has been cancelled
Build Porymap / build-linux (6.8.*) (push) Has been cancelled
Build Porymap / build-macos (macos-15-intel) (push) Has been cancelled
Build Porymap / build-macos (macos-latest) (push) Has been cancelled
Build Porymap / build-static-windows (push) Has been cancelled
This commit is contained in:
parent
47a4e343af
commit
6ffabb8adf
|
|
@ -164,7 +164,7 @@ namespace fex
|
|||
// Note: Using QFile instead of ifstream to handle encoding differences between platforms
|
||||
// (specifically to handle accented characters on Windows)
|
||||
QFile file(path);
|
||||
file.open(QIODevice::ReadOnly);
|
||||
if (!file.open(QIODevice::ReadOnly)) return Lex();
|
||||
|
||||
const QByteArray data = file.readAll();
|
||||
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ void logInit() {
|
|||
dir.mkpath(settingsPath);
|
||||
Log::path = dir.absoluteFilePath(QStringLiteral("porymap.log"));
|
||||
Log::file.setFileName(Log::path);
|
||||
Log::file.open(QIODevice::WriteOnly | QIODevice::Append);
|
||||
if (!Log::file.open(QIODevice::WriteOnly | QIODevice::Append)) return;
|
||||
Log::textStream.setDevice(&Log::file);
|
||||
|
||||
QObject::connect(&Log::displayClearTimer, &QTimer::timeout, [=] {
|
||||
|
|
|
|||
|
|
@ -708,9 +708,9 @@ void MainWindow::restoreWindowState() {
|
|||
}
|
||||
|
||||
void MainWindow::setTheme(QString theme) {
|
||||
QFile File(QString(":/themes/%1.qss").arg(theme));
|
||||
File.open(QFile::ReadOnly);
|
||||
QString stylesheet = QLatin1String(File.readAll());
|
||||
QFile file(QString(":/themes/%1.qss").arg(theme));
|
||||
if (!file.open(QFile::ReadOnly)) return;
|
||||
QString stylesheet = QLatin1String(file.readAll());
|
||||
|
||||
stylesheet.append(QString("QWidget { %1 } ").arg(Util::toStylesheetString(porymapConfig.applicationFont)));
|
||||
stylesheet.append(QString("MapTree { %1 } ").arg(Util::toStylesheetString(porymapConfig.mapListFont)));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user