diff options
author | hjk <hjk@qt.io> | 2023-05-16 13:06:18 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-05-16 16:36:25 +0000 |
commit | 6c5fb656d63efddcdc7e98e58aae04f2ae718c50 (patch) | |
tree | 57d9eca8642e09993f568aac945417a8372b3be0 /src/plugins/cppcheck | |
parent | 824de3046c439908372f164b397b324ca09da1fb (diff) |
Utils: Make PagedSettings::readSettings() calls shorter
Ideally, this would not be needed on the user code side at all, but
there's no way to ensure the settings are read timing before sibling
constructors might need it. So keep the 'poor man's two-phase
initialization', but make it less intrusive.
Change-Id: Ica7f6510cd05072d7286f4e85cd72c494e8f10f8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/cppcheck')
-rw-r--r-- | src/plugins/cppcheck/cppcheckoptions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppcheck/cppcheckoptions.cpp b/src/plugins/cppcheck/cppcheckoptions.cpp index 46ab82cfeea..37f537f2fee 100644 --- a/src/plugins/cppcheck/cppcheckoptions.cpp +++ b/src/plugins/cppcheck/cppcheckoptions.cpp @@ -121,7 +121,7 @@ CppcheckOptions::CppcheckOptions() setLayouter(layouter()); - readSettings(Core::ICore::settings()); + readSettings(); } std::function<void(QWidget *widget)> CppcheckOptions::layouter() |