summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi
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/ipa/raspberrypi
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/ipa/raspberrypi')
-rw-r--r--src/ipa/raspberrypi/controller/algorithm.hpp2
-rw-r--r--src/ipa/raspberrypi/md_parser.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ipa/raspberrypi/controller/algorithm.hpp b/src/ipa/raspberrypi/controller/algorithm.hpp
index 6196b2f9..17423f23 100644
--- a/src/ipa/raspberrypi/controller/algorithm.hpp
+++ b/src/ipa/raspberrypi/controller/algorithm.hpp
@@ -30,7 +30,7 @@ public:
: controller_(controller), paused_(false)
{
}
- virtual ~Algorithm() {}
+ virtual ~Algorithm() = default;
virtual char const *Name() const = 0;
virtual bool IsPaused() const { return paused_; }
virtual void Pause() { paused_ = true; }
diff --git a/src/ipa/raspberrypi/md_parser.hpp b/src/ipa/raspberrypi/md_parser.hpp
index c9db62c0..926f676e 100644
--- a/src/ipa/raspberrypi/md_parser.hpp
+++ b/src/ipa/raspberrypi/md_parser.hpp
@@ -67,7 +67,7 @@ public:
ERROR = 2
};
MdParser() : reset_(true) {}
- virtual ~MdParser() {}
+ virtual ~MdParser() = default;
void Reset() { reset_ = true; }
void SetBitsPerPixel(int bpp) { bits_per_pixel_ = bpp; }
void SetNumLines(unsigned int num_lines) { num_lines_ = num_lines; }