Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
556788a3
Commit
556788a3
authored
Mar 16, 2022
by
Laurent Montel
Browse files
Port QStringRef
parent
92ebb01a
Pipeline
#150806
passed with stage
in 2 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
applets/kimpanel/backend/ibus/emojier/emojierplugin.cpp
View file @
556788a3
...
...
@@ -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
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment