aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2024-03-19 16:54:43 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2024-03-20 13:13:53 +0000
commit230bfa88a0a8de44e5ef5037d2397786c8913e73 (patch)
tree72fcd856d1beb68dd1f9156d6ed2eb9ccfaad013 /src/plugins/cppeditor
parentaaf839bcf0e0ee5b77f47fcc47b4c18c2bbe31b3 (diff)
CppEditor: Fix soft assert when serializing clangd setting
This was probably introduced by a merge commit. Change-Id: I5360b8fb25aa9cfbf8e6d3563b0219152a144815 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cppeditor')
-rw-r--r--src/plugins/cppeditor/cppcodemodelsettings.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cppcodemodelsettings.cpp b/src/plugins/cppeditor/cppcodemodelsettings.cpp
index 1a72174155..d1b4c47098 100644
--- a/src/plugins/cppeditor/cppcodemodelsettings.cpp
+++ b/src/plugins/cppeditor/cppcodemodelsettings.cpp
@@ -624,8 +624,7 @@ Store ClangdSettings::Data::toMap() const
map.insert(clangdSizeThresholdKey(), sizeThresholdInKb);
map.insert(sessionsWithOneClangdKey(), sessionsWithOneClangd);
map.insert(diagnosticConfigIdKey(), diagnosticConfigId.toSetting());
- if (haveCheckedHardwareReqirements != false)
- map.insert(checkedHardwareKey(), true);
+ map.insert(checkedHardwareKey(), haveCheckedHardwareReqirements);
map.insert(completionResultsKey(), completionResults);
return map;
}