diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2019-06-10 00:10:53 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2019-06-10 14:34:25 +0000 |
commit | 45373c19243aea335897ba0f371a1dd53ae8f079 (patch) | |
tree | 24aa7eb380516482d52bf998e7e985064d3694b3 /src/corelib/tools | |
parent | 97891aa19765591ed9c85952e8eac53459167315 (diff) |
Deprecate QLatin1Literal
It's an undocumented typedef for QLatin1String.
[ChangeLog][QtCore][QLatin1Literal] The undocumented QLatin1Literal
type alias for QLatin1String is now deprecated. Use QLatin1String
instead.
Change-Id: I05eba8b857454e59b9b9d7b07c42fe6fc9c77fec
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools')
-rw-r--r-- | src/corelib/tools/qstring.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/tools/qstring.h b/src/corelib/tools/qstring.h index da8260a999..a885ad1412 100644 --- a/src/corelib/tools/qstring.h +++ b/src/corelib/tools/qstring.h @@ -214,7 +214,9 @@ private: Q_DECLARE_TYPEINFO(QLatin1String, Q_MOVABLE_TYPE); // Qt 4.x compatibility -typedef QLatin1String QLatin1Literal; +#if QT_DEPRECATED_SINCE(5, 14) +QT_DEPRECATED_X("Use QLatin1String") typedef QLatin1String QLatin1Literal; +#endif // // QLatin1String inline implementations |