diff options
Diffstat (limited to 'src/libcamera/include/device_enumerator_udev.h')
-rw-r--r-- | src/libcamera/include/device_enumerator_udev.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcamera/include/device_enumerator_udev.h b/src/libcamera/include/device_enumerator_udev.h index efaefe5d..fdce4520 100644 --- a/src/libcamera/include/device_enumerator_udev.h +++ b/src/libcamera/include/device_enumerator_udev.h @@ -43,9 +43,9 @@ private: using DependencyMap = std::map<dev_t, std::list<MediaEntity *>>; struct MediaDeviceDeps { - MediaDeviceDeps(const std::shared_ptr<MediaDevice> &media, - const DependencyMap &deps) - : media_(media), deps_(deps) + MediaDeviceDeps(std::unique_ptr<MediaDevice> &&media, + DependencyMap &&deps) + : media_(std::move(media)), deps_(std::move(deps)) { } @@ -54,7 +54,7 @@ private: return media_ == other.media_; } - std::shared_ptr<MediaDevice> media_; + std::unique_ptr<MediaDevice> media_; DependencyMap deps_; }; |