forked from qt-creator/qt-creator
Maemo: Make device configuration id type consistent.
Task-number: QTCREATORBUG-1460
This commit is contained in:
@@ -116,7 +116,7 @@ MaemoDeviceConfig::MaemoDeviceConfig(const QSettings &settings,
|
||||
: name(settings.value(NameKey).toString()),
|
||||
type(static_cast<DeviceType>(settings.value(TypeKey, DefaultDeviceType).toInt())),
|
||||
gdbServerPort(settings.value(GdbServerPortKey, defaultGdbServerPort(type)).toInt()),
|
||||
internalId(settings.value(InternalIdKey, nextId).toInt())
|
||||
internalId(settings.value(InternalIdKey, nextId).toULongLong())
|
||||
{
|
||||
if (internalId == nextId)
|
||||
++nextId;
|
||||
@@ -227,7 +227,7 @@ MaemoDeviceConfig MaemoDeviceConfigurations::find(const QString &name) const
|
||||
return resultIt == m_devConfigs.constEnd() ? MaemoDeviceConfig() : *resultIt;
|
||||
}
|
||||
|
||||
MaemoDeviceConfig MaemoDeviceConfigurations::find(int id) const
|
||||
MaemoDeviceConfig MaemoDeviceConfigurations::find(quint64 id) const
|
||||
{
|
||||
QList<MaemoDeviceConfig>::ConstIterator resultIt =
|
||||
std::find_if(m_devConfigs.constBegin(), m_devConfigs.constEnd(),
|
||||
|
||||
Reference in New Issue
Block a user