aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/atlauncher
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-11-03 16:41:55 -0300
committerflow <flowlnlnln@gmail.com>2022-11-04 16:53:24 -0300
commit353b51f11ea406dd027096c30ec9626ee4e2c417 (patch)
treebbd288e7a6060d96824876d38dd861fe5a3546b4 /launcher/ui/pages/modplatform/atlauncher
parent76050880f16bef13ed152f379e72ce52042676a2 (diff)
downloadPrismLauncher-353b51f11ea406dd027096c30ec9626ee4e2c417.tar.gz
PrismLauncher-353b51f11ea406dd027096c30ec9626ee4e2c417.tar.bz2
PrismLauncher-353b51f11ea406dd027096c30ec9626ee4e2c417.zip
refactor: move MMCStrings -> StringUtils
General utilities can go in here >:) Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/ui/pages/modplatform/atlauncher')
-rw-r--r--launcher/ui/pages/modplatform/atlauncher/AtlFilterModel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/launcher/ui/pages/modplatform/atlauncher/AtlFilterModel.cpp b/launcher/ui/pages/modplatform/atlauncher/AtlFilterModel.cpp
index c1ab166b..0887ebee 100644
--- a/launcher/ui/pages/modplatform/atlauncher/AtlFilterModel.cpp
+++ b/launcher/ui/pages/modplatform/atlauncher/AtlFilterModel.cpp
@@ -20,7 +20,8 @@
#include <modplatform/atlauncher/ATLPackIndex.h>
#include <Version.h>
-#include <MMCStrings.h>
+
+#include "StringUtils.h"
namespace Atl {
@@ -86,7 +87,7 @@ bool FilterModel::lessThan(const QModelIndex &left, const QModelIndex &right) co
return lv < rv;
}
else if (currentSorting == ByName) {
- return Strings::naturalCompare(leftPack.name, rightPack.name, Qt::CaseSensitive) >= 0;
+ return StringUtils::naturalCompare(leftPack.name, rightPack.name, Qt::CaseSensitive) >= 0;
}
// Invalid sorting set, somehow...