From 179c23efb11d2bf24c694e9a5373c5bf7193c511 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 11 Mar 2020 09:43:25 +0100 Subject: [PATCH] QStringBuilder: make the nested ConvertTo typedef public It's needed by QStringTokenizer, and it's more generally useful as a public type (you don't need to match the type of the conversion operator, but can just access the nested typedef). Change-Id: I2cf8b22f1ca31c38d51d2143932115da6aefc5a7 Reviewed-by: Lars Knoll --- src/corelib/text/qstringbuilder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/text/qstringbuilder.h b/src/corelib/text/qstringbuilder.h index 288d98d633..49f316a1f9 100644 --- a/src/corelib/text/qstringbuilder.h +++ b/src/corelib/text/qstringbuilder.h @@ -126,8 +126,8 @@ private: } typedef QConcatenable > Concatenable; - typedef typename Concatenable::ConvertTo ConvertTo; public: + typedef typename Concatenable::ConvertTo ConvertTo; operator ConvertTo() const { return convertTo(); } int size() const { return Concatenable::size(*this); }