team-charls / charls

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

Remove usage of const_cast #263

Closed vbaderks closed 1 year ago

vbaderks commented 1 year ago

Usage of const_cast was required as functor objects were used for encoding and decoding. By splitting this functors in 2 types, the const_casts are not needed anymore and CharLS becomes const correct.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 13 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication