Wrap static literal strings with QStringLiteral

The strings in the deprecation map are never modified in the program and
they're known at compile time. An internal resizable buffer is not
needed for these strings so we can allocate them statically.
This commit is contained in:
Gianluca Recchia 2019-01-17 07:31:23 +01:00 committed by Jonathan White
parent 2cf837801d
commit c01e14c879
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -32,13 +32,13 @@
*/
static const QMap<QString, QString> deprecationMap = {
// >2.3.4
{"security/hidepassworddetails", "security/HidePasswordPreviewPanel"},
{QStringLiteral("security/hidepassworddetails"), QStringLiteral("security/HidePasswordPreviewPanel")},
// >2.3.4
{"GUI/HideDetailsView", "GUI/HidePreviewPanel"},
{QStringLiteral("GUI/HideDetailsView"), QStringLiteral("GUI/HidePreviewPanel")},
// >2.3.4
{"GUI/DetailSplitterState", "GUI/PreviewSplitterState"},
{QStringLiteral("GUI/DetailSplitterState"), QStringLiteral("GUI/PreviewSplitterState")},
// >2.3.4
{"security/IconDownloadFallbackToGoogle", "security/IconDownloadFallback"},
{QStringLiteral("security/IconDownloadFallbackToGoogle"), QStringLiteral("security/IconDownloadFallback")},
};
Config* Config::m_instance(nullptr);