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:
Laurent Pinchart 2020-10-23 07:51:56 +03:00
parent 0c1f7da15e
commit c77d894a8b
13 changed files with 16 additions and 16 deletions

View file

@ -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; }