Skip to content

Commit 77682eb

Browse files
committed
Fixed virtual override bug in fileio_linux (and added override keywords)
1 parent 71661e4 commit 77682eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Release/src/streams/linux/fileio_linux.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,12 +445,12 @@ class _filestream_callback_fill_buffer : public _filestream_callback
445445
public:
446446
_filestream_callback_fill_buffer(_file_info *info, _filestream_callback *callback, Func func) : m_info(info), m_func(func), m_callback(callback) { }
447447

448-
virtual void on_completed(size_t result)
448+
virtual void on_completed(size_t result) override
449449
{
450450
m_func(result);
451451
delete this;
452452
}
453-
virtual void on_error(const std::exception &e)
453+
virtual void on_error(const std::exception_ptr &e) override
454454
{
455455
auto exptr = std::make_exception_ptr(e);
456456
m_callback->on_error(exptr);

0 commit comments

Comments
 (0)