From 6fac2d126fccad757f512e5995d4c24c3cbd194e Mon Sep 17 00:00:00 2001 From: Lioncache Date: Sun, 7 Dec 2025 08:58:51 -0500 Subject: [PATCH] CExportGameDialog: Remove redundant QString conversion We can just use QFileInfo here. --- src/Editor/CExportGameDialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Editor/CExportGameDialog.cpp b/src/Editor/CExportGameDialog.cpp index 26a89116..4086d44c 100644 --- a/src/Editor/CExportGameDialog.cpp +++ b/src/Editor/CExportGameDialog.cpp @@ -11,7 +11,7 @@ #include #include -#include +#include #include #include #include @@ -33,8 +33,8 @@ CExportGameDialog::CExportGameDialog(const QString& rkIsoPath, const QString& rk mpExporter = std::make_unique(mDiscType, mGame, mWiiFrontend, mRegion, mGameTitle, mGameID, mBuildVer); InitUI(rkExportDir); - TString IsoName = TO_TSTRING(rkIsoPath).GetFileName(); - setWindowTitle(tr("Export Settings - %1").arg(TO_QSTRING(IsoName))); + const auto IsoName = QFileInfo(rkIsoPath).fileName(); + setWindowTitle(tr("Export Settings - %1").arg(IsoName)); } else {