diff options
author | hjk <hjk@qt.io> | 2020-02-18 18:25:26 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-02-19 15:59:12 +0000 |
commit | 3f68292dbe56eedb5614012df44ffce82cf65b5a (patch) | |
tree | 9a787c553db1f6e8d675f3cb89c5f8c9bb4abf41 /src/plugins/cppcheck | |
parent | 57662de841636e447eadc698f8d51b14e90c08d7 (diff) |
ProjectExplorer: Introduce ToolChainKitAspect::{c,cxx}ToolChain
Special accessors to the repeatedly used C and C++ cases to denoise
and slim down user code. Plus some code cosmetics nearby.
Change-Id: Iba4662bd4731d8c4256e658529f39d5c995691ce
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cppcheck')
-rw-r--r-- | src/plugins/cppcheck/cppcheckplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppcheck/cppcheckplugin.cpp b/src/plugins/cppcheck/cppcheckplugin.cpp index 97bf20929e..02488c696c 100644 --- a/src/plugins/cppcheck/cppcheckplugin.cpp +++ b/src/plugins/cppcheck/cppcheckplugin.cpp @@ -148,7 +148,7 @@ void CppcheckPluginPrivate::updateManualRunAction() const Target *target = SessionManager::startupTarget(); const Core::Id cxx = ProjectExplorer::Constants::CXX_LANGUAGE_ID; const bool canRun = target && project->projectLanguages().contains(cxx) - && ToolChainKitAspect::toolChain(target->kit(), cxx); + && ToolChainKitAspect::cxxToolChain(target->kit()); manualRunAction->setEnabled(canRun); } |