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>
bb10
Marc Mutz 2020-03-11 09:43:25 +01:00
parent d9580c2beb
commit 179c23efb1
1 changed files with 1 additions and 1 deletions

View File

@ -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); }