mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Move ensureUtf8Encoding to named namespace
To follow https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#sf21-dont-use-an-unnamed-anonymous-namespace-in-a-header Add QtGlobal include to define QT_VERSION and QT_VERSION_CHECK macroses before they're used.
This commit is contained in:
parent
ee980721b8
commit
dd89403df0
4 changed files with 15 additions and 13 deletions
|
@ -308,7 +308,7 @@ bool Launcher::MainDialog::setupLauncherSettings()
|
|||
return false;
|
||||
}
|
||||
QTextStream stream(&file);
|
||||
ensureUtf8Encoding(stream);
|
||||
Misc::ensureUtf8Encoding(stream);
|
||||
|
||||
mLauncherSettings.readFile(stream);
|
||||
}
|
||||
|
@ -344,7 +344,7 @@ bool Launcher::MainDialog::setupGameSettings()
|
|||
return {};
|
||||
}
|
||||
QTextStream stream(&file);
|
||||
ensureUtf8Encoding(stream);
|
||||
Misc::ensureUtf8Encoding(stream);
|
||||
|
||||
(mGameSettings.*reader)(stream, ignoreContent);
|
||||
file.close();
|
||||
|
@ -544,7 +544,7 @@ bool Launcher::MainDialog::writeSettings()
|
|||
|
||||
QTextStream stream(&file);
|
||||
stream.setDevice(&file);
|
||||
ensureUtf8Encoding(stream);
|
||||
Misc::ensureUtf8Encoding(stream);
|
||||
|
||||
mLauncherSettings.writeFile(stream);
|
||||
file.close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue