diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-07-28 00:59:06 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-07-28 00:59:35 +0200 |
| commit | 8998c8bb78e1cb0858d7d61fb03146b4284a577e (patch) | |
| tree | 01274868c357ca706b9eb32f74376ea59b7f8c26 /src/stereo_j2k_picture_frame.cc | |
| parent | 6f8ff274caa86cdfa551f88ff2b8306b9badb293 (diff) | |
Cleanup: remove some unnecessary const_casts.
Diffstat (limited to 'src/stereo_j2k_picture_frame.cc')
| -rw-r--r-- | src/stereo_j2k_picture_frame.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stereo_j2k_picture_frame.cc b/src/stereo_j2k_picture_frame.cc index 9ef91c5c..8e09888a 100644 --- a/src/stereo_j2k_picture_frame.cc +++ b/src/stereo_j2k_picture_frame.cc @@ -123,9 +123,9 @@ StereoJ2KPictureFrame::xyz_image (Eye eye, int reduce) const { switch (eye) { case Eye::LEFT: - return decompress_j2k (const_cast<uint8_t*>(_buffer->Left.RoData()), _buffer->Left.Size(), reduce); + return decompress_j2k(_buffer->Left.RoData(), _buffer->Left.Size(), reduce); case Eye::RIGHT: - return decompress_j2k (const_cast<uint8_t*>(_buffer->Right.RoData()), _buffer->Right.Size(), reduce); + return decompress_j2k(_buffer->Right.RoData(), _buffer->Right.Size(), reduce); } return {}; |
