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
|
@ -230,7 +230,7 @@ bool Config::GameSettings::isOrderedLine(const QString& line)
|
|||
bool Config::GameSettings::writeFileWithComments(QFile& file)
|
||||
{
|
||||
QTextStream stream(&file);
|
||||
ensureUtf8Encoding(stream);
|
||||
Misc::ensureUtf8Encoding(stream);
|
||||
|
||||
// slurp
|
||||
std::vector<QString> fileCopy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue