diff options
Diffstat (limited to 'src/corelib/text')
-rw-r--r-- | src/corelib/text/qbytedata_p.h | 2 | ||||
-rw-r--r-- | src/corelib/text/qstring.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/text/qbytedata_p.h b/src/corelib/text/qbytedata_p.h index 053e4202d3..77f351cbb4 100644 --- a/src/corelib/text/qbytedata_p.h +++ b/src/corelib/text/qbytedata_p.h @@ -275,7 +275,7 @@ public: inline qint64 sizeNextBlock() const { - if(buffers.isEmpty()) + if (buffers.isEmpty()) return 0; else return buffers.first().size() - firstPos; diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index c955cb8736..499d8dcade 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -4475,9 +4475,9 @@ QString QString::section(const QString &sep, qsizetype start, qsizetype end, Sec const QStringView §ion = sections.at(i); const bool empty = section.isEmpty(); if (x >= start) { - if(x == start) + if (x == start) first_i = i; - if(x == end) + if (x == end) last_i = i; if (x > start && i > 0) ret += sep; |