Skip to content

Commit 8bcc715

Browse files
committed
IOMemReader ctr should take const buffer pointer (AcademySoftwareFoundation#3665)
The ctr is inline, so I don't think it breaks backwards link compatibility to make this change, so I do intend to backport it.
1 parent ba3f204 commit 8bcc715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/OpenImageIO/filesystem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ class OIIO_UTIL_API IOVecOutput : public IOProxy {
528528
/// IOProxy subclass for reading that wraps an cspan<char>.
529529
class OIIO_UTIL_API IOMemReader : public IOProxy {
530530
public:
531-
IOMemReader(void* buf, size_t size)
531+
IOMemReader(const void* buf, size_t size)
532532
: IOProxy("", Read)
533533
, m_buf((const unsigned char*)buf, size)
534534
{

0 commit comments

Comments
 (0)