Skip to content

Commit fe20c71

Browse files
Add OIIO_NODISCARD_ERROR to ImageInput::valid_file
1 parent 977e2f9 commit fe20c71

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/include/OpenImageIO/imageio.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,10 +1143,10 @@ class OIIO_API ImageInput {
11431143
///
11441144
/// @returns
11451145
/// `true` upon success, or `false` upon failure.
1146-
virtual bool valid_file (const std::string& filename) const;
1146+
OIIO_NODISCARD_ERROR virtual bool valid_file (const std::string& filename) const;
11471147

11481148
/// Check valid file using a UTF-16 encoded wstring filename.
1149-
bool valid_file (const std::wstring& filename) const {
1149+
OIIO_NODISCARD_ERROR bool valid_file (const std::wstring& filename) const {
11501150
return valid_file(Strutil::utf16_to_utf8(filename));
11511151
}
11521152

0 commit comments

Comments
 (0)