forked from qt-creator/qt-creator
ProjectExplorer: Inline convenience overload that was used just once
Change-Id: I4b695a07b60df0d197f549657e0ce23ca4fe5ccb Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -117,7 +117,7 @@ BuildConfiguration::BuildType GenericBuildConfiguration::buildType() const
|
||||
|
||||
void GenericBuildConfiguration::addToEnvironment(Utils::Environment &env) const
|
||||
{
|
||||
prependCompilerPathToEnvironment(env);
|
||||
prependCompilerPathToEnvironment(target()->kit(), env);
|
||||
const QtSupport::BaseQtVersion *qt = QtSupport::QtKitAspect::qtVersion(target()->kit());
|
||||
if (qt)
|
||||
env.prependOrSetPath(qt->binPath().toString());
|
||||
|
||||
@@ -373,10 +373,6 @@ bool BuildConfiguration::isActive() const
|
||||
* PATH. This is used to in build configurations targeting broken build systems
|
||||
* to provide hints about which compiler to use.
|
||||
*/
|
||||
void BuildConfiguration::prependCompilerPathToEnvironment(Utils::Environment &env) const
|
||||
{
|
||||
return prependCompilerPathToEnvironment(target()->kit(), env);
|
||||
}
|
||||
|
||||
void BuildConfiguration::prependCompilerPathToEnvironment(Kit *k, Utils::Environment &env)
|
||||
{
|
||||
|
||||
@@ -95,7 +95,6 @@ public:
|
||||
|
||||
bool isActive() const override;
|
||||
|
||||
void prependCompilerPathToEnvironment(Utils::Environment &env) const;
|
||||
static void prependCompilerPathToEnvironment(Kit *k, Utils::Environment &env);
|
||||
void updateCacheAndEmitEnvironmentChanged();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user