forked from qt-creator/qt-creator
No raw Device pointers in DeviceManager interface.
Change-Id: I6f5515d9d04517a71ba5a6bcbbd54af7d14d2bbb Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -405,7 +405,7 @@ IDevice::Id DeviceManager::internalId(const IDevice::ConstPtr &device) const
|
||||
return device ? device->internalId() : IDevice::invalidId();
|
||||
}
|
||||
|
||||
int DeviceManager::indexOf(const IDevice *device) const
|
||||
int DeviceManager::indexOf(const IDevice::ConstPtr &device) const
|
||||
{
|
||||
return indexForInternalId(device->internalId());
|
||||
}
|
||||
|
@@ -64,7 +64,7 @@ public:
|
||||
bool hasDevice(const QString &name) const;
|
||||
IDevice::Id internalId(const IDevice::ConstPtr &device) const;
|
||||
|
||||
int indexOf(const IDevice *device) const;
|
||||
int indexOf(const IDevice::ConstPtr &device) const;
|
||||
|
||||
void addDevice(const IDevice::Ptr &device);
|
||||
void removeDevice(int index);
|
||||
|
Reference in New Issue
Block a user