summaryrefslogtreecommitdiff
path: root/Kernel/Bus/PCI
diff options
context:
space:
mode:
authorHendiadyoin1 <leon2002.la@gmail.com>2021-12-08 13:37:35 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-09 22:53:42 -0800
commitde26dd253b2bc9d66d814db74403f790dd0c8719 (patch)
tree0e468be8c4183ce1186c24d37aaa1e34898fb2bc /Kernel/Bus/PCI
parent3070252090cee3a90259ed70ded1988c346a4452 (diff)
downloadserenity-de26dd253b2bc9d66d814db74403f790dd0c8719.zip
Kernel: Pass capabilities as const reference in PCI::Address
Diffstat (limited to 'Kernel/Bus/PCI')
-rw-r--r--Kernel/Bus/PCI/Definitions.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Bus/PCI/Definitions.h b/Kernel/Bus/PCI/Definitions.h
index 03c7af35d4..589d190d14 100644
--- a/Kernel/Bus/PCI/Definitions.h
+++ b/Kernel/Bus/PCI/Definitions.h
@@ -234,7 +234,7 @@ TYPEDEF_DISTINCT_ORDERED_ID(u8, InterruptPin);
class Access;
class DeviceIdentifier {
public:
- DeviceIdentifier(Address address, HardwareID hardware_id, RevisionID revision_id, ClassCode class_code, SubclassCode subclass_code, ProgrammingInterface prog_if, SubsystemID subsystem_id, SubsystemVendorID subsystem_vendor_id, InterruptLine interrupt_line, InterruptPin interrupt_pin, Vector<Capability> capabilities)
+ DeviceIdentifier(Address address, HardwareID hardware_id, RevisionID revision_id, ClassCode class_code, SubclassCode subclass_code, ProgrammingInterface prog_if, SubsystemID subsystem_id, SubsystemVendorID subsystem_vendor_id, InterruptLine interrupt_line, InterruptPin interrupt_pin, Vector<Capability> const& capabilities)
: m_address(address)
, m_hardware_id(hardware_id)
, m_revision_id(revision_id)
@@ -253,9 +253,9 @@ public:
}
}
- Vector<Capability> capabilities() const { return m_capabilities; }
- const HardwareID& hardware_id() const { return m_hardware_id; }
- const Address& address() const { return m_address; }
+ Vector<Capability> const& capabilities() const { return m_capabilities; }
+ HardwareID const& hardware_id() const { return m_hardware_id; }
+ Address const& address() const { return m_address; }
RevisionID revision_id() const { return m_revision_id; }
ClassCode class_code() const { return m_class_code; }