Commit 556788a3 authored by Laurent Montel's avatar Laurent Montel
Browse files

Port QStringRef

parent 92ebb01a
Pipeline #150806 passed with stage
in 2 minutes and 31 seconds
......@@ -78,7 +78,11 @@ public:
const auto idxSpecific = bcp.indexOf(QLatin1Char('-'));
if (idxSpecific > 0) {
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
const QString genericDictName = QLatin1String{"ibus/dicts/emoji-"} + bcp.leftRef(idxSpecific) + QLatin1String{".dict"};
#else
const QString genericDictName = QLatin1String{"ibus/dicts/emoji-"} + QStringView(bcp).left(idxSpecific) + QLatin1String{".dict"};
#endif
const QString genericPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, genericDictName);
if (!genericPath.isEmpty()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment