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:
f6029fe
)
use QSTACKARRAY() macro in QString::replace()
author
Ivailo Monev
<xakepa10@gmail.com>
Wed, 5 Jul 2023 06:00:23 +0000
(09:00 +0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Wed, 5 Jul 2023 06:00:23 +0000
(09:00 +0300)
so that the array is zero-initialized
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/tools/qstring.cpp
patch
|
blob
|
history
diff --git
a/src/core/tools/qstring.cpp
b/src/core/tools/qstring.cpp
index
02f2da3
..
a998de3
100644
(file)
--- a/
src/core/tools/qstring.cpp
+++ b/
src/core/tools/qstring.cpp
@@
-1591,7
+1591,7
@@
QString& QString::replace(QChar ch, const QString &after, Qt::CaseSensitivity cs
int index = 0;
while (1) {
-
uint indices[1024]
;
+
QSTACKARRAY(uint, indices, 1024)
;
uint pos = 0;
if (cs == Qt::CaseSensitive) {
while (pos < 1023 && index < d->size) {