[*] Refactor: INetAdapter::GetDNS() now returns a const reference

This commit is contained in:
Reece Wilson 2024-04-01 06:44:20 +01:00
parent 2a2e40fc8c
commit a300076c6d
3 changed files with 3 additions and 3 deletions

View File

@ -38,6 +38,6 @@ namespace Aurora::IO::Net
virtual AuUInt64 GetTransmitBytesPerSec() = 0;
virtual AuUInt64 GetReceiveBytesPerSec() = 0;
virtual AuList<IPAddress> GetDNS() = 0;
virtual const AuList<IPAddress> &GetDNS() = 0;
};
};

View File

@ -66,7 +66,7 @@ namespace Aurora::IO::Net
return this->gateway;
}
AuList<IPAddress> NetAdapter::GetDNS()
const AuList<IPAddress> &NetAdapter::GetDNS()
{
return this->dns;
}

View File

@ -27,7 +27,7 @@ namespace Aurora::IO::Net
const IPAddress &GetSubnetMask() override;
const IPAddress &GetGateway() override;
AuList<IPAddress> GetDNS() override;
const AuList<IPAddress> &GetDNS() override;
AuArray<AuUInt8, 8> GetMacAddress() override;