From 8a9bb9fc94bb94cd345b6e0669fb8c233d3a6012 Mon Sep 17 00:00:00 2001 From: Victor Derks Date: Sun, 10 Dec 2023 16:17:05 +0100 Subject: [PATCH] Resolve SonarQube warnings --- src/scan_decoder.h | 5 +---- src/scan_encoder.h | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/scan_decoder.h b/src/scan_decoder.h index f927f509..be111f99 100644 --- a/src/scan_decoder.h +++ b/src/scan_decoder.h @@ -34,10 +34,7 @@ class scan_decoder : protected scan_codec virtual size_t decode_scan(span source, std::byte* destination, size_t stride) = 0; protected: - scan_decoder(const charls::frame_info& frame_info, const coding_parameters& parameters) noexcept : - scan_codec{frame_info, parameters} - { - } + using scan_codec::scan_codec; void initialize(const span source) { diff --git a/src/scan_encoder.h b/src/scan_encoder.h index b2862c8b..615ef3b0 100644 --- a/src/scan_encoder.h +++ b/src/scan_encoder.h @@ -29,9 +29,7 @@ class scan_encoder : protected scan_codec virtual size_t encode_scan(const std::byte* source, size_t stride, span destination) = 0; protected: - scan_encoder(const charls::frame_info& info, const coding_parameters& parameters) noexcept : scan_codec{info, parameters} - { - } + using scan_codec::scan_codec; void on_line_begin(void* destination, const size_t pixel_count, const size_t pixel_stride) const {