From 97af14a4f025c7476fb539680b13e007471a3d88 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Wed, 12 Aug 2020 17:56:22 +0200 Subject: [PATCH] Make QTokenizer use simpler by having optional second parameter Signed-off-by: Kevin Ottens --- src/3rdparty/qtokenizer/qtokenizer.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/3rdparty/qtokenizer/qtokenizer.h b/src/3rdparty/qtokenizer/qtokenizer.h index b8de15a7d..d8ca3d53f 100644 --- a/src/3rdparty/qtokenizer/qtokenizer.h +++ b/src/3rdparty/qtokenizer/qtokenizer.h @@ -110,7 +110,7 @@ struct QTokenizerPrivate { bool returnQuotes; }; -template +template class QTokenizer { public: using char_type = typename T::value_type; @@ -234,7 +234,7 @@ private: QSharedPointer > d; }; -class QStringTokenizer : public QTokenizer { +class QStringTokenizer : public QTokenizer { public: QStringTokenizer(const QString &string, const QString &delim) : QTokenizer(string, delim) {} @@ -253,9 +253,9 @@ public: } }; -using QByteArrayTokenizer = QTokenizer; -using StringTokenizer = QTokenizer; -using WStringTokenizer = QTokenizer; +using QByteArrayTokenizer = QTokenizer; +using StringTokenizer = QTokenizer; +using WStringTokenizer = QTokenizer; QT_END_NAMESPACE