Fix internal/cgen/auxiliary/image.cc C++ warnings

This commit is contained in:
Nigel Tao committed 2021-03-08 23:36:59 +11:00
1 parent 4e3a005d28
commit 3a45b69cc5
3 files changed
+18 -18

No files matched your search

+2 -2
View File
@@ -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 "";