mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
Fix internal/cgen/auxiliary/image.cc C++ warnings
This commit is contained in:
1 parent
4e3a005d28
commit
3a45b69cc5
3 files changed
+18
-18
No files matched your search
@@ -36695,7 +36695,7 @@ DecodeImageResult::DecodeImageResult(MemOwner&& pixbuf_mem_owner0,
|
||||
DecodeImageResult::DecodeImageResult(std::string&& error_message0)
|
||||
: pixbuf_mem_owner(nullptr, &free),
|
||||
pixbuf_mem_slice(wuffs_base__empty_slice_u8()),
|
||||
pixbuf({0}),
|
||||
pixbuf(wuffs_base__null_pixel_buffer()),
|
||||
error_message(std::move(error_message0)) {}
|
||||
|
||||
DecodeImageCallbacks::AllocResult::AllocResult(MemOwner&& mem_owner0,
|
||||
@@ -36797,7 +36797,7 @@ DecodeImageAdvanceIOBuf(sync_io::Input& input,
|
||||
}
|
||||
std::string error_message = input.CopyIn(&io_buf);
|
||||
if (!error_message.empty()) {
|
||||
return std::move(error_message);
|
||||
return error_message;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
|
||||
Reference in new issue
Block a user