Skip to content

Commit

Permalink
Add more override qualifiers for Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuavas committed Apr 22, 2024
1 parent 44c3506 commit 1044024
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions 3rdparty/asio/include/asio/detail/null_reactor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ class null_reactor
}

// Destroy all user-defined handler objects owned by the service.
void shutdown()
void shutdown() override
{
}

// No-op because should never be called.
void run(long /*usec*/, op_queue<scheduler_operation>& /*ops*/)
void run(long /*usec*/, op_queue<scheduler_operation>& /*ops*/) override
{
}

// No-op.
void interrupt()
void interrupt() override
{
}
};
Expand Down
4 changes: 2 additions & 2 deletions 3rdparty/asio/include/asio/detail/select_reactor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ class select_reactor
ASIO_DECL ~select_reactor();

// Destroy all user-defined handler objects owned by the service.
ASIO_DECL void shutdown();
ASIO_DECL void shutdown() override;

// Recreate internal descriptors following a fork.
ASIO_DECL void notify_fork(
asio::execution_context::fork_event fork_ev);
asio::execution_context::fork_event fork_ev) override;

// Initialise the task, but only if the reactor is not in its own thread.
ASIO_DECL void init_task();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class win_iocp_file_service :
ASIO_DECL win_iocp_file_service(execution_context& context);

// Destroy all user-defined handler objects owned by the service.
ASIO_DECL void shutdown();
ASIO_DECL void shutdown() override;

// Construct a new file implementation.
void construct(implementation_type& impl)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class win_iocp_handle_service :
ASIO_DECL win_iocp_handle_service(execution_context& context);

// Destroy all user-defined handler objects owned by the service.
ASIO_DECL void shutdown();
ASIO_DECL void shutdown() override;

// Construct a new handle implementation.
ASIO_DECL void construct(implementation_type& impl);
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/asio/include/asio/detail/win_iocp_io_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class win_iocp_io_context
ASIO_DECL ~win_iocp_io_context();

// Destroy all user-defined handler objects owned by the service.
ASIO_DECL void shutdown();
ASIO_DECL void shutdown() override;

// Initialise the task. Nothing to do here.
void init_task()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class win_iocp_serial_port_service :
ASIO_DECL win_iocp_serial_port_service(execution_context& context);

// Destroy all user-defined handler objects owned by the service.
ASIO_DECL void shutdown();
ASIO_DECL void shutdown() override;

// Construct a new serial port implementation.
void construct(implementation_type& impl)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class win_iocp_socket_service :
}

// Destroy all user-defined handler objects owned by the service.
void shutdown()
void shutdown() override
{
this->base_shutdown();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class win_object_handle_service :
ASIO_DECL win_object_handle_service(execution_context& context);

// Destroy all user-defined handler objects owned by the service.
ASIO_DECL void shutdown();
ASIO_DECL void shutdown() override;

// Construct a new handle implementation.
ASIO_DECL void construct(implementation_type& impl);
Expand Down

0 comments on commit 1044024

Please sign in to comment.