mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:27:35 +00:00
Kernel: Fix const-correctness of PCI::DeviceIdentifier usage
This commit is contained in:
parent
053afbf2d1
commit
68c9781299
2 changed files with 4 additions and 4 deletions
|
@ -16,7 +16,7 @@ namespace Kernel::PCI {
|
|||
|
||||
class Device {
|
||||
public:
|
||||
DeviceIdentifier& device_identifier() const { return *m_pci_identifier; };
|
||||
DeviceIdentifier const& device_identifier() const { return *m_pci_identifier; };
|
||||
|
||||
virtual ~Device() = default;
|
||||
|
||||
|
@ -38,7 +38,7 @@ protected:
|
|||
explicit Device(DeviceIdentifier const& pci_identifier);
|
||||
|
||||
private:
|
||||
NonnullRefPtr<DeviceIdentifier> m_pci_identifier;
|
||||
NonnullRefPtr<DeviceIdentifier const> m_pci_identifier;
|
||||
};
|
||||
|
||||
template<typename... Parameters>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue