summaryrefslogtreecommitdiff
path: root/src/android
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-10-23 07:51:56 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-10-23 22:53:13 +0300
commitc77d894a8b2b441baafd7b2d689a1c668e56c382 (patch)
tree5004637683442d148f5bf220f9a209b3221cf518 /src/android
parent0c1f7da15ed91bf53034631180de744756afbacf (diff)
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>
Diffstat (limited to 'src/android')
-rw-r--r--src/android/jpeg/encoder.h2
-rw-r--r--src/android/post_processor.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/android/jpeg/encoder.h b/src/android/jpeg/encoder.h
index 270ea609..0ca2ba38 100644
--- a/src/android/jpeg/encoder.h
+++ b/src/android/jpeg/encoder.h
@@ -14,7 +14,7 @@
class Encoder
{
public:
- virtual ~Encoder() {}
+ virtual ~Encoder() = default;
virtual int configure(const libcamera::StreamConfiguration &cfg) = 0;
virtual int encode(const libcamera::FrameBuffer &source,
diff --git a/src/android/post_processor.h b/src/android/post_processor.h
index 5f87a5d1..e0f91880 100644
--- a/src/android/post_processor.h
+++ b/src/android/post_processor.h
@@ -16,7 +16,7 @@ class CameraMetadata;
class PostProcessor
{
public:
- virtual ~PostProcessor() {}
+ virtual ~PostProcessor() = default;
virtual int configure(const libcamera::StreamConfiguration &inCfg,
const libcamera::StreamConfiguration &outCfg) = 0;