Skip to content

Commit

Permalink
fix C++20 deprecation warning
Browse files Browse the repository at this point in the history
Capturing this with = is deprecated.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Jan 27, 2023
1 parent 4a735ef commit 3431826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bmffimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ uint64_t BmffImage::boxHandler(std::ostream& out /* = std::cout*/, Exiv2::PrintS
enforce(data.size() - skip >= (version > 2u ? 4u : 2u), Exiv2::ErrorCode::kerCorruptedMetadata);
enforce(data.size() - skip >= step, Exiv2::ErrorCode::kerCorruptedMetadata);
uint32_t ID = version > 2 ? data.read_uint32(skip, endian_) : data.read_uint16(skip, endian_);
auto offset = [=] {
auto offset = [this, &data, skip, step] {
if (step == 14 || step == 16)
return data.read_uint32(skip + step - 8, endian_);
if (step == 18)
Expand Down

0 comments on commit 3431826

Please sign in to comment.