forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -155,8 +155,8 @@ KitInfo::KitInfo(Kit *kit)
|
||||
{
|
||||
// Toolchains
|
||||
if (kit) {
|
||||
cToolChain = ToolChainKitAspect::toolChain(kit, Constants::C_LANGUAGE_ID);
|
||||
cxxToolChain = ToolChainKitAspect::toolChain(kit, Constants::CXX_LANGUAGE_ID);
|
||||
cToolChain = ToolChainKitAspect::cToolChain(kit);
|
||||
cxxToolChain = ToolChainKitAspect::cxxToolChain(kit);
|
||||
}
|
||||
|
||||
// Sysroot
|
||||
|
||||
Reference in New Issue
Block a user