libcamera: Declare empty virtual destructors as defaulted
The base class of polymorphic classes is required to declare a destructor. Several of these are empty, and can thus be declared as defaulted. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <email@uajain.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -26,7 +26,7 @@ enum ConnectionType {
|
||||
class BoundMethodPackBase
|
||||
{
|
||||
public:
|
||||
virtual ~BoundMethodPackBase() {}
|
||||
virtual ~BoundMethodPackBase() = default;
|
||||
};
|
||||
|
||||
template<typename R, typename... Args>
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
: obj_(obj), object_(object), connectionType_(type)
|
||||
{
|
||||
}
|
||||
virtual ~BoundMethodBase() {}
|
||||
virtual ~BoundMethodBase() = default;
|
||||
|
||||
template<typename T, typename std::enable_if_t<!std::is_same<Object, T>::value> * = nullptr>
|
||||
bool match(T *obj) { return obj == obj_; }
|
||||
|
||||
Reference in New Issue
Block a user