From c77d894a8b2b441baafd7b2d689a1c668e56c382 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 23 Oct 2020 07:51:56 +0300 Subject: 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 Reviewed-by: Umang Jain Reviewed-by: Kieran Bingham --- src/qcam/viewfinder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qcam') diff --git a/src/qcam/viewfinder.h b/src/qcam/viewfinder.h index 67da1df2..e33dc452 100644 --- a/src/qcam/viewfinder.h +++ b/src/qcam/viewfinder.h @@ -22,7 +22,7 @@ struct MappedBuffer { class ViewFinder { public: - virtual ~ViewFinder() {} + virtual ~ViewFinder() = default; virtual const QList &nativeFormats() const = 0; -- cgit v1.2.1