mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 16:47:28 +01:00
Have wuffs_aux take lvalue (not rvalue) references
This commit is contained in:
1 parent
d690ce7dce
commit
2742a4f4be
9 files changed
+47
-42
No files matched your search
@@ -620,8 +620,9 @@ main1(int argc, char** argv) {
|
||||
}
|
||||
}
|
||||
|
||||
return wuffs_aux::DecodeCbor(Callbacks(), wuffs_aux::sync_io::FileInput(in))
|
||||
.error_message;
|
||||
Callbacks callbacks;
|
||||
wuffs_aux::sync_io::FileInput input(in);
|
||||
return wuffs_aux::DecodeCbor(callbacks, input).error_message;
|
||||
}
|
||||
|
||||
// ----
|
||||
|
||||
@@ -313,8 +313,10 @@ main1(int argc, char** argv) {
|
||||
}
|
||||
}
|
||||
|
||||
Callbacks callbacks;
|
||||
wuffs_aux::sync_io::FileInput input(in);
|
||||
return wuffs_aux::DecodeJson(
|
||||
Callbacks(), wuffs_aux::sync_io::FileInput(in),
|
||||
callbacks, input,
|
||||
wuffs_base__make_slice_u32(g_quirks.data(), g_quirks.size()))
|
||||
.error_message;
|
||||
}
|
||||
|
||||
@@ -515,8 +515,10 @@ main1(int argc, char** argv) {
|
||||
}
|
||||
}
|
||||
|
||||
Callbacks callbacks;
|
||||
wuffs_aux::sync_io::FileInput input(in);
|
||||
return wuffs_aux::DecodeJson(
|
||||
Callbacks(), wuffs_aux::sync_io::FileInput(in),
|
||||
callbacks, input,
|
||||
wuffs_base__make_slice_u32(g_quirks.data(), g_quirks.size()),
|
||||
(g_flags.query_c_string ? g_flags.query_c_string : ""))
|
||||
.error_message;
|
||||
|
||||
Reference in new issue
Block a user