iOS: Modernize

modernize-*

Change-Id: I64d2bb4320c9b444bc13e90099600628eac1f5a6
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Alessandro Portale
2018-11-12 19:55:59 +01:00
parent 57d31b8ebc
commit 39400381b3
28 changed files with 58 additions and 76 deletions

View File

@@ -48,8 +48,8 @@ bool IosQtVersionFactory::canRestore(const QString &type)
QtSupport::BaseQtVersion *IosQtVersionFactory::restore(const QString &type,
const QVariantMap &data)
{
QTC_ASSERT(canRestore(type), return 0);
IosQtVersion *v = new IosQtVersion;
QTC_ASSERT(canRestore(type), return nullptr);
auto v = new IosQtVersion;
v->fromMap(data);
return v;
}
@@ -65,7 +65,7 @@ QtSupport::BaseQtVersion *IosQtVersionFactory::create(const Utils::FileName &qma
const QString &autoDetectionSource)
{
if (!(evaluator->values(QLatin1String("QMAKE_PLATFORM")).contains(QLatin1String("ios"))))
return 0;
return nullptr;
return new IosQtVersion(qmakePath, isAutoDetected, autoDetectionSource);
}