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:
a87cc17
)
indent QByteArray::indexOf()
author
Ivailo Monev
<xakepa10@gmail.com>
Fri, 9 Jul 2021 19:28:57 +0000
(22:28 +0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Fri, 9 Jul 2021 19:28:57 +0000
(22:28 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/tools/qbytearray.cpp
patch
|
blob
|
history
diff --git
a/src/core/tools/qbytearray.cpp
b/src/core/tools/qbytearray.cpp
index
404722e
..
3444893
100644
(file)
--- a/
src/core/tools/qbytearray.cpp
+++ b/
src/core/tools/qbytearray.cpp
@@
-2261,9
+2261,10
@@
int QByteArray::indexOf(char ch, int from) const
if (from < d->size) {
const char *n = d->data + from - 1;
const char *e = d->data + d->size;
- while (++n != e)
- if (*n == ch)
- return n - d->data;
+ while (++n != e) {
+ if (*n == ch)
+ return n - d->data;
+ }
}
return -1;
}