aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-03-11 19:14:44 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-03-11 19:14:44 -0500
commit100cc592984e14a5f2746b95b19446cb1ff99540 (patch)
tree4a5ce4e8e76b88cd8b49d378be244c351865eba5
parent5769638d5c2a32d452610319e0488d3af35fefc3 (diff)
Fix build: use QString::fromLocal8Bit instead of QStringEncoder::encode
QStringEncoder::encode() returns DecodedData which can't be directly assigned to QString in a declaration context. Use fromLocal8Bit() which is simpler and equivalent for system-encoded byte arrays. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
-rw-r--r--libs/game_bethesda/src/gamebryo/gamebryogameplugins.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/game_bethesda/src/gamebryo/gamebryogameplugins.cpp b/libs/game_bethesda/src/gamebryo/gamebryogameplugins.cpp
index 78535a1..93814a5 100644
--- a/libs/game_bethesda/src/gamebryo/gamebryogameplugins.cpp
+++ b/libs/game_bethesda/src/gamebryo/gamebryogameplugins.cpp
@@ -231,8 +231,7 @@ QStringList GamebryoGamePlugins::readPluginList(MOBase::IPluginList* pluginList)
while (!file.atEnd()) {
QByteArray line = file.readLine();
if (line.size() > 0 && line.at(0) != '#') {
- QStringEncoder encoder(QStringConverter::Encoding::System);
- QString pluginName = encoder.encode(line.trimmed().constData());
+ QString pluginName = QString::fromLocal8Bit(line.trimmed());
bool asterisk = false;
if (pluginName.startsWith('*')) {
pluginName = pluginName.mid(1);