summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-08-03 00:41:58 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-08-03 10:43:36 +0200
commitf0f297c5f26d2e87b9ce819973beac47f361c7ee (patch)
tree0a2a45061a0e6f7364883227d4bb5d9080b669e8
parentf2df5abe5db9da36d4f07192a037acbcda2dee02 (diff)
libcamera: device_enumerator_udev: Align class final declaration with sysfs subclass
Instead of marking each individual overloaded function with final mark the whole class as final. This aligns the sysfs and udev based DeviceEnumerator implementations. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <email@uajain.com>
-rw-r--r--include/libcamera/internal/device_enumerator_udev.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libcamera/internal/device_enumerator_udev.h b/include/libcamera/internal/device_enumerator_udev.h
index 2e7916a0..6f45be0c 100644
--- a/include/libcamera/internal/device_enumerator_udev.h
+++ b/include/libcamera/internal/device_enumerator_udev.h
@@ -26,14 +26,14 @@ class EventNotifier;
class MediaDevice;
class MediaEntity;
-class DeviceEnumeratorUdev : public DeviceEnumerator
+class DeviceEnumeratorUdev final : public DeviceEnumerator
{
public:
DeviceEnumeratorUdev();
~DeviceEnumeratorUdev();
- int init() final;
- int enumerate() final;
+ int init();
+ int enumerate();
private:
using DependencyMap = std::map<dev_t, std::list<MediaEntity *>>;