forked from qt-creator/qt-creator
improve code
Change-Id: I06c7274c39f7e369d4cd9bed0c1ef77e4bc08b35 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -288,8 +288,8 @@ QJsonObject AndroidManager::deploymentSettings(const Target *target)
|
||||
|
||||
Utils::FilePath AndroidManager::dirPath(const ProjectExplorer::Target *target)
|
||||
{
|
||||
if (target->activeBuildConfiguration())
|
||||
return target->activeBuildConfiguration()->buildDirectory().pathAppended(Constants::ANDROID_BUILDDIRECTORY);
|
||||
if (auto *bc = target->activeBuildConfiguration())
|
||||
return bc->buildDirectory().pathAppended(Constants::ANDROID_BUILDDIRECTORY);
|
||||
return Utils::FilePath();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user