From 616aec76b3d6398f31fe6fde6d1c1bfeb0c53e91 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 9 Jul 2021 22:28:57 +0300 Subject: [PATCH] indent QByteArray::indexOf() Signed-off-by: Ivailo Monev --- src/core/tools/qbytearray.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/tools/qbytearray.cpp b/src/core/tools/qbytearray.cpp index 404722e35..3444893e8 100644 --- 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; } -- 2.11.0