Skip to content

Commit

Permalink
Resolve SonarQube warnings (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaderks authored Dec 10, 2023
1 parent 1760183 commit 0f47e2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/scan_decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ class scan_decoder : protected scan_codec
virtual size_t decode_scan(span<const std::byte> 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<const std::byte> source)
{
Expand Down
4 changes: 1 addition & 3 deletions src/scan_encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ class scan_encoder : protected scan_codec
virtual size_t encode_scan(const std::byte* source, size_t stride, span<std::byte> 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
{
Expand Down

0 comments on commit 0f47e2b

Please sign in to comment.