mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Fix Function parameter should be passed by const reference warnings
Codacy.
This commit is contained in:
parent
b7aea5b726
commit
47545e511d
|
@ -71,7 +71,7 @@ namespace PacketReader::IP::UDP::DNS
|
||||||
//null char
|
//null char
|
||||||
*offset += 1;
|
*offset += 1;
|
||||||
}
|
}
|
||||||
void DNS_QuestionEntry::WriteDNS_String(u8* buffer, int* offset, std::string value)
|
void DNS_QuestionEntry::WriteDNS_String(u8* buffer, int* offset, const std::string& value)
|
||||||
{
|
{
|
||||||
int segmentLength = 0;
|
int segmentLength = 0;
|
||||||
int segmentStart = 0;
|
int segmentStart = 0;
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace PacketReader::IP::UDP::DNS
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void ReadDNS_String(u8* buffer, int* offset, std::string* value);
|
void ReadDNS_String(u8* buffer, int* offset, std::string* value);
|
||||||
void WriteDNS_String(u8* buffer, int* offset, std::string value);
|
void WriteDNS_String(u8* buffer, int* offset, const std::string& value);
|
||||||
};
|
};
|
||||||
|
|
||||||
class DNS_ResponseEntry : public DNS_QuestionEntry
|
class DNS_ResponseEntry : public DNS_QuestionEntry
|
||||||
|
|
Loading…
Reference in New Issue