diff options
author | hjk <hjk@qt.io> | 2023-08-23 18:18:46 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-08-24 08:51:00 +0000 |
commit | 621a2850d0ff084c5ebb119aae4fc96f6224b2ef (patch) | |
tree | 58e56f9071f69efa1a1ea84ec1d194baf2c9dbc9 /src/plugins/texteditor/codestylepool.cpp | |
parent | 0490266723ac0424d1b44c907797038b2f6881e8 (diff) |
Utils etc: More use of Key and Store
Change-Id: Idd2d70617f775d783aee93a2fe82544ad335a739
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Diffstat (limited to 'src/plugins/texteditor/codestylepool.cpp')
-rw-r--r-- | src/plugins/texteditor/codestylepool.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/texteditor/codestylepool.cpp b/src/plugins/texteditor/codestylepool.cpp index 30e74ecfca0..23b8aaccf8f 100644 --- a/src/plugins/texteditor/codestylepool.cpp +++ b/src/plugins/texteditor/codestylepool.cpp @@ -204,10 +204,10 @@ ICodeStylePreferences *CodeStylePool::loadCodeStyle(const FilePath &fileName) ICodeStylePreferences *codeStyle = nullptr; PersistentSettingsReader reader; reader.load(fileName); - QVariantMap m = reader.restoreValues(); - if (m.contains(QLatin1String(codeStyleDataKey))) { + Store m = reader.restoreValues(); + if (m.contains(codeStyleDataKey)) { const QByteArray id = fileName.completeBaseName().toUtf8(); - const QString displayName = reader.restoreValue(QLatin1String(displayNameKey)).toString(); + const QString displayName = reader.restoreValue(displayNameKey).toString(); const Store map = reader.restoreValue(codeStyleDataKey).value<Store>(); if (d->m_factory) { codeStyle = d->m_factory->createCodeStyle(); |