diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-01-31 09:34:49 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-03-29 12:29:52 +0000 |
commit | 46351b4e601ee0e87c4a8467785c1e5718565190 (patch) | |
tree | 73b495e0b635eb9aa4c73834449a731bf53c0f8d /src/corelib/tools/qlocale.h | |
parent | 718023606370d7c0f972acb0ba83df3383b8800a (diff) |
QColor: port to QStringView
... leveraging the existing support for QLatin1String, which is the
char equivalent of QStringView.
The only noteworthy changes here are the port of the low-level
functions to size_t and that the internal template function,
setColorFromString(), can now take its argument by value, since only
views are ever passed to it anymore.
In the test, used new QTest::addRow() to format test names, and
introduced temporaries to avoid re-calculating the same input values
for every check.
Change-Id: Ia3c59e5c435ff753f34993a8d85c0c0b4e8e2b22
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/tools/qlocale.h')
0 files changed, 0 insertions, 0 deletions