Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/include/OpenImageIO/paramlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ class OIIO_UTIL_API ParamValue {
ParamValue(ustring name, TypeDesc type, int nvalues, cspan<std::byte> value,
Copy copy = Copy(true), Interp interp = INTERP_CONSTANT) noexcept
{
init_noclear(name, type, nvalues, value, copy);
init_noclear(name, type, nvalues, interp, value, copy);
}

ParamValue(string_view name, TypeDesc type, int nvalues,
cspan<std::byte> value, Copy copy = Copy(true),
Interp interp = INTERP_CONSTANT) noexcept
{
init_noclear(ustring(name), type, nvalues, value, copy);
init_noclear(ustring(name), type, nvalues, interp, value, copy);
}

// Deprecated versions that take raw pointers ////////////////////////
Expand Down Expand Up @@ -205,7 +205,8 @@ class OIIO_UTIL_API ParamValue {
span<T> value, Copy copy = Copy(true)) noexcept
{
clear_value();
init_noclear(ustring(name), type, nvalues, interp, value, copy);
init_noclear(ustring(name), type, nvalues, interp,
OIIO::as_bytes(value), copy);
}

// Deprecated versions that take raw pointers ////////////////////////
Expand Down Expand Up @@ -807,8 +808,8 @@ class OIIO_UTIL_API ParamValueSpan : public cspan<ParamValue> {
OIIO_DASSERT(BaseTypeFromC<T>::value == type.basetype
&& type.size() == value.size_bytes());
// Just call the untyped bytes version underneath.
return getattribute(name, type, as_writable_bytes(value),
casesensitive);
return getattribute_indexed(name, index, type, as_writable_bytes(value),
casesensitive);
}
bool getattribute_indexed(string_view name, int index, TypeDesc type,
span<std::byte> value,
Expand Down
Loading