team-charls / charls

CharLS, a C++ JPEG-LS library implementation
BSD 3-Clause "New" or "Revised" License
188 stars 74 forks source link

Get rid of dummy template selector parameters #258

Closed vbaderks closed 1 year ago

vbaderks commented 1 year ago

C++17 if constexpr allows to select the correct function without the dummy selector parameters. Use this method. Re-order the methods in a logical call order from top to bottom: encode_lines -> encode_line-> encode_sample -> encode_run/regular

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
41.3% 41.3% Duplication