mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-21 21:24:35 -04: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
1 changed files with 4 additions and 4 deletions
|
@ -32,13 +32,13 @@
|
||||||
*/
|
*/
|
||||||
static const QMap<QString, QString> deprecationMap = {
|
static const QMap<QString, QString> deprecationMap = {
|
||||||
// >2.3.4
|
// >2.3.4
|
||||||
{"security/hidepassworddetails", "security/HidePasswordPreviewPanel"},
|
{QStringLiteral("security/hidepassworddetails"), QStringLiteral("security/HidePasswordPreviewPanel")},
|
||||||
// >2.3.4
|
// >2.3.4
|
||||||
{"GUI/HideDetailsView", "GUI/HidePreviewPanel"},
|
{QStringLiteral("GUI/HideDetailsView"), QStringLiteral("GUI/HidePreviewPanel")},
|
||||||
// >2.3.4
|
// >2.3.4
|
||||||
{"GUI/DetailSplitterState", "GUI/PreviewSplitterState"},
|
{QStringLiteral("GUI/DetailSplitterState"), QStringLiteral("GUI/PreviewSplitterState")},
|
||||||
// >2.3.4
|
// >2.3.4
|
||||||
{"security/IconDownloadFallbackToGoogle", "security/IconDownloadFallback"},
|
{QStringLiteral("security/IconDownloadFallbackToGoogle"), QStringLiteral("security/IconDownloadFallback")},
|
||||||
};
|
};
|
||||||
|
|
||||||
Config* Config::m_instance(nullptr);
|
Config* Config::m_instance(nullptr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue