OSDN Git Service
(root)
/
kde
/
kde-workspace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e176878
)
kglobalaccel: keysFromString() and stringFromKeys() functions optimization
author
Ivailo Monev
<xakepa10@gmail.com>
Sun, 27 Aug 2023 17:15:32 +0000
(20:15 +0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Sun, 27 Aug 2023 17:15:32 +0000
(20:15 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kglobalaccel/component.cpp
patch
|
blob
|
history
diff --git
a/kglobalaccel/component.cpp
b/kglobalaccel/component.cpp
index
b59c565
..
88513b8
100644
(file)
--- a/
kglobalaccel/component.cpp
+++ b/
kglobalaccel/component.cpp
@@
-36,7
+36,7
@@
static QList<int> keysFromString(const QString &str)
{
QList<int> ret;
- if (str ==
"none"
) {
+ if (str ==
QLatin1String("none")
) {
return ret;
}
const QStringList strList = str.split('\t');
@@
-53,7
+53,7
@@
static QList<int> keysFromString(const QString &str)
static QString stringFromKeys(const QList<int> &keys)
{
if (keys.isEmpty()) {
- return
"none"
;
+ return
QString::fromLatin1("none")
;
}
QString ret;
foreach (int key, keys) {