mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-29 01:06:27 -05:00
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:
parent
2cf837801d
commit
c01e14c879
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user