Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve SonarQube warnings #291

Merged
merged 1 commit into from
Dec 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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