Commit 3f1fc6a4 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Device support: Make the parameter to DeviceManager::addDevice() const.

It's cloned anyway, so it does not have to be mutable.
This should have been part of 5bf0280b


Change-Id: I18ad29b37f89035f3598de445dfa3c1dfea8f15f
Reviewed-by: default avatarTobias Hunger <>
parent c1761e68
......@@ -225,7 +225,7 @@ Utils::FileName DeviceManager::settingsFilePath(const QString &extension)
return Utils::FileName::fromString(QFileInfo(ExtensionSystem::PluginManager::settings()->fileName()).absolutePath() + extension);
void DeviceManager::addDevice(const IDevice::Ptr &_device)
void DeviceManager::addDevice(const IDevice::ConstPtr &_device)
const IDevice::Ptr device = _device->clone();
......@@ -67,7 +67,7 @@ public:
IDevice::ConstPtr defaultDevice(Core::Id deviceType) const;
bool hasDevice(const QString &name) const;
void addDevice(const IDevice::Ptr &device);
void addDevice(const IDevice::ConstPtr &device);
void removeDevice(Core::Id id);
bool isLoaded() const;
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