summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qcolor.h
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-04-11 17:27:52 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2022-04-28 05:58:52 +0200
commit9a55c695c7ecb8a2154661462255423a20ef4097 (patch)
treef9b07d22115cf9f4984086a4aaa7c5dfea7e0c34 /src/gui/painting/qcolor.h
parent7b6b133746aa8bf23e08753851d7e23cc9d76170 (diff)
QtGui: replace remaining uses of QLatin1String with QLatin1StringView
Task-number: QTBUG-98434 Change-Id: I98c27030c783f968cbf38dc966ce486dc366b302 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/painting/qcolor.h')
-rw-r--r--src/gui/painting/qcolor.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/painting/qcolor.h b/src/gui/painting/qcolor.h
index 26e7623e9f..412f7ed948 100644
--- a/src/gui/painting/qcolor.h
+++ b/src/gui/painting/qcolor.h
@@ -91,7 +91,7 @@ public:
QT_DEPRECATED_VERSION_X_6_6("Use QColor::fromString() instead.")
inline QColor(const char *aname);
QT_DEPRECATED_VERSION_X_6_6("Use QColor::fromString() instead.")
- inline QColor(QLatin1String name);
+ inline QColor(QLatin1StringView name);
#endif
QColor(Spec spec) noexcept;
@@ -109,7 +109,7 @@ public:
QT_DEPRECATED_VERSION_X_6_6("Use fromString() instead.")
void setNamedColor(QStringView name);
QT_DEPRECATED_VERSION_X_6_6("Use fromString() instead.")
- void setNamedColor(QLatin1String name);
+ void setNamedColor(QLatin1StringView name);
#endif
static QStringList colorNames();
@@ -240,7 +240,7 @@ public:
QT_DEPRECATED_VERSION_X_6_6("Use isValidColorName() instead.")
static bool isValidColor(QStringView) noexcept;
QT_DEPRECATED_VERSION_X_6_6("Use isValidColorName() instead.")
- static bool isValidColor(QLatin1String) noexcept;
+ static bool isValidColor(QLatin1StringView) noexcept;
#endif
static bool isValidColorName(QAnyStringView) noexcept;
@@ -313,7 +313,7 @@ public: // can't give friendship to a namespace, so it needs to be public
Q_DECLARE_TYPEINFO(QColor, Q_RELOCATABLE_TYPE);
#if QT_DEPRECATED_SINCE(6, 6)
-inline QColor::QColor(QLatin1String aname)
+inline QColor::QColor(QLatin1StringView aname)
: QColor(fromString(aname)) {}
inline QColor::QColor(QStringView aname)