aboutsummaryrefslogtreecommitdiff
path: root/launcher/BaseInstance.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-05-02 19:48:37 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2022-07-10 12:17:52 +0200
commitff2cd50bfaeaab89ab830f1223c1e3649642dfa3 (patch)
tree7ba32b95bfe3fbaa18a37d271134b62172990a21 /launcher/BaseInstance.cpp
parent984692dc629ca3712d482b174a67557dd9e635a8 (diff)
downloadPrismLauncher-ff2cd50bfaeaab89ab830f1223c1e3649642dfa3.tar.gz
PrismLauncher-ff2cd50bfaeaab89ab830f1223c1e3649642dfa3.tar.bz2
PrismLauncher-ff2cd50bfaeaab89ab830f1223c1e3649642dfa3.zip
refactor: replace QRegExp with QRegularExpression
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/BaseInstance.cpp')
-rw-r--r--launcher/BaseInstance.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/BaseInstance.cpp b/launcher/BaseInstance.cpp
index 0efbdddc..5a84a931 100644
--- a/launcher/BaseInstance.cpp
+++ b/launcher/BaseInstance.cpp
@@ -39,6 +39,7 @@
#include <QFileInfo>
#include <QDir>
#include <QDebug>
+#include <QRegularExpression>
#include "settings/INISettingsObject.h"
#include "settings/Setting.h"
@@ -335,7 +336,7 @@ QString BaseInstance::name() const
QString BaseInstance::windowTitle() const
{
- return BuildConfig.LAUNCHER_NAME + ": " + name().replace(QRegExp("[ \n\r\t]+"), " ");
+ return BuildConfig.LAUNCHER_NAME + ": " + name().replace(QRegularExpression("\\s+"), " ");
}
// FIXME: why is this here? move it to MinecraftInstance!!!