diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2020-03-11 09:43:25 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2020-03-12 09:27:27 +0000 |
commit | 179c23efb11d2bf24c694e9a5373c5bf7193c511 (patch) | |
tree | 80900e1ec06af7defbfd185db533d0cbfaab703a /src | |
parent | d9580c2beb60ef0061ab1eeb8216a75d4c1fca84 (diff) |
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 <lars.knoll@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/text/qstringbuilder.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<QStringBuilder<A, B> > Concatenable; - typedef typename Concatenable::ConvertTo ConvertTo; public: + typedef typename Concatenable::ConvertTo ConvertTo; operator ConvertTo() const { return convertTo<ConvertTo>(); } int size() const { return Concatenable::size(*this); } |