From 359d6e7b0b0ef7add9eb2015d0dd664a82cf73d7 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 6 Mar 2023 17:16:25 +0100 Subject: Everywhere: Stop using NonnullOwnPtrVector Same as NonnullRefPtrVector: weird semantics, questionable benefits. --- Kernel/Bus/VirtIO/Device.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Kernel/Bus') diff --git a/Kernel/Bus/VirtIO/Device.h b/Kernel/Bus/VirtIO/Device.h index e185f7a171..f8269aafe0 100644 --- a/Kernel/Bus/VirtIO/Device.h +++ b/Kernel/Bus/VirtIO/Device.h @@ -144,13 +144,13 @@ protected: Queue& get_queue(u16 queue_index) { VERIFY(queue_index < m_queue_count); - return m_queues[queue_index]; + return *m_queues[queue_index]; } Queue const& get_queue(u16 queue_index) const { VERIFY(queue_index < m_queue_count); - return m_queues[queue_index]; + return *m_queues[queue_index]; } template @@ -190,7 +190,7 @@ private: u8 isr_status(); virtual bool handle_irq(RegisterState const&) override; - NonnullOwnPtrVector m_queues; + Vector> m_queues; Vector m_configs; Configuration const* m_common_cfg { nullptr }; // Cached due to high usage Configuration const* m_notify_cfg { nullptr }; // Cached due to high usage -- cgit v1.2.3