diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2024-04-10 10:01:47 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2024-04-18 14:36:00 -0700 |
commit | 11f242174b5b53a7052e9d6edc7b75aa8f8d91c4 (patch) | |
tree | 4afad24e6a0b64331bdb4dd7317cfe249f763b5a /src/corelib | |
parent | 2e8c6d467fa245e8bcb81cff63d2d9628e1ee81e (diff) |
QStringBuilder: DRY: use the Concatenable typedef
Instead of repeating the full template expansion.
Task-number: QTBUG-124117
Pick-to: 6.7
Change-Id: I40526efc4e93413794c3fffd17c4f9e200733660
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/text/qstringbuilder.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/text/qstringbuilder.h b/src/corelib/text/qstringbuilder.h index 52dbd52b47..853033b2d9 100644 --- a/src/corelib/text/qstringbuilder.h +++ b/src/corelib/text/qstringbuilder.h @@ -101,7 +101,7 @@ private: return T(); } - const qsizetype len = QConcatenable< QStringBuilder<A, B> >::size(*this); + const qsizetype len = Concatenable::size(*this); T s(len, Qt::Uninitialized); // Using data_ptr() here (private API) so we can bypass the @@ -110,9 +110,9 @@ private: // the same if len != 0. auto d = reinterpret_cast<typename T::iterator>(s.data_ptr().data()); const auto start = d; - QConcatenable<QStringBuilder<A, B>>::appendTo(*this, d); + Concatenable::appendTo(*this, d); - if constexpr (QConcatenable<QStringBuilder<A, B>>::ExactSize) { + if constexpr (Concatenable::ExactSize) { Q_UNUSED(start) } else { if (len != d - start) { |