OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
547848b
)
avoid temporary in QKeySequence::toString()
author
Ivailo Monev
<xakepa10@laimg.moc>
Wed, 17 Jun 2020 22:26:29 +0000
(22:26 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Wed, 17 Jun 2020 22:26:29 +0000
(22:26 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/kernel/qkeysequence.cpp
patch
|
blob
|
history
diff --git
a/src/gui/kernel/qkeysequence.cpp
b/src/gui/kernel/qkeysequence.cpp
index
5dce889
..
9962777
100644
(file)
--- a/
src/gui/kernel/qkeysequence.cpp
+++ b/
src/gui/kernel/qkeysequence.cpp
@@
-1288,8
+1288,7
@@
QString QKeySequence::toString(SequenceFormat format) const
QString finalString;
// A standard string, with no translation or anything like that. In some ways it will
// look like our latin case on Windows and X11
- int end = count();
- for (int i = 0; i < end; ++i) {
+ for (int i = 0; i < count(); ++i) {
finalString += d->encodeString(d->key[i], format);
finalString += QLatin1String(", ");
}