Skip to content
Snippets Groups Projects
Commit 26f5aaef authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Explicitly initialize signing mode

 * Explicitly set signing mode to SelfSigned if not mentioned in the
   .user file
 * Do not use c-style casts.
parent 718da90a
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,7 @@ QVariantMap S60CreatePackageStep::toMap() const
bool S60CreatePackageStep::fromMap(const QVariantMap &map)
{
m_signingMode = (SigningMode)map.value(QLatin1String(SIGNMODE_KEY)).toInt();
m_signingMode = static_cast<SigningMode>(map.value(QLatin1String(SIGNMODE_KEY), static_cast<int>(SignSelf)).toInt());
m_customSignaturePath = map.value(QLatin1String(CERTIFICATE_KEY)).toString();
setCustomKeyPath(map.value(QLatin1String(KEYFILE_KEY)).toString());
m_createSmartInstaller = map.value(QLatin1String(SMART_INSTALLER_KEY), false).toBool();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment