diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-07-18 10:24:37 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-08-04 01:35:36 +0000 |
commit | 046a5a8f4f49944e6bf94cded52f88535d16bb3f (patch) | |
tree | 97c7e7e939033dfca01a8ca68b1623ae049214e0 /src/corelib/text | |
parent | 841ff3b73f9951e49b6406007d76302b3f367f55 (diff) |
Eradicate QT_STRINGVIEW_LEVEL
It was designed to gauge the impact of replacing QString functions
with QStringView ones, as opposed to just overloading, but that never
came to pass, for two reasons:
1. We never got to implement a full set of overloads with the pattern
in a large enough library (QtCore) for results to matter.
2. QStringView doesn't accept everything that QString accepts, making
it unsuitable as a drop-in replacement (QAnyStringView has that
property, though, but we never added a QT_ANYSTRINGVIEW_LEVEL
macro).
So, R.I.P. QT_STRINGVIEW_LEVEL.
Fixes: QTBUG-100861
Pick-to: 6.4
Change-Id: I0a9318177acb295e8eeeddfb345449112070c597
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/text')
-rw-r--r-- | src/corelib/text/qstringview.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/corelib/text/qstringview.h b/src/corelib/text/qstringview.h index 3f0812e2e7..d820ec8ad0 100644 --- a/src/corelib/text/qstringview.h +++ b/src/corelib/text/qstringview.h @@ -4,13 +4,6 @@ #ifndef QSTRINGVIEW_H #define QSTRINGVIEW_H -/* - Obsolete. -*/ -#ifndef QT_STRINGVIEW_LEVEL -# define QT_STRINGVIEW_LEVEL 1 -#endif - #include <QtCore/qchar.h> #include <QtCore/qbytearray.h> #include <QtCore/qstringliteral.h> |