Commit 048756a6 authored by Christian Kandeler's avatar Christian Kandeler

Maemo: Get rid of some Q_ASSERTs that limit forward compatibility.

parent 37fa34e2
......@@ -339,7 +339,7 @@ QString MaemoDeviceConfig::defaultUser(MaemoGlobal::MaemoVersion osVersion)
case MaemoGlobal::Meego:
return QLatin1String("meego");
default:
Q_ASSERT(false);
qDebug("%s: Unknown OS Version %d.", Q_FUNC_INFO, osVersion);
return QString();
}
}
......@@ -353,7 +353,7 @@ QString MaemoDeviceConfig::defaultQemuPassword(MaemoGlobal::MaemoVersion osVersi
case MaemoGlobal::Meego:
return QLatin1String("meego");
default:
Q_ASSERT(false);
qDebug("%s: Unknown OS Version %d.", Q_FUNC_INFO, osVersion);
return QString();
}
}
......
......@@ -342,7 +342,7 @@ QString MaemoGlobal::maemoVersionToString(MaemoVersion version)
case Maemo6: return QLatin1String("Harmattan");
case Meego: return QLatin1String("Meego");
}
Q_ASSERT(false);
qDebug("%s: Unknown OS Version %d.", Q_FUNC_INFO, osVersion);
return QString();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment