mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
NetworkSystem: use cached string lengths where possible
Avoid doing internal strlen() when length is already known.
This commit is contained in:
parent
bfe96e9ccd
commit
73b517600d
@ -107,7 +107,7 @@ void CBanSystem::SaveList(void) const
|
||||
|
||||
rapidjson::Value obj(rapidjson::kObjectType);
|
||||
|
||||
obj.AddMember("ipAddress", rapidjson::Value(banned.m_Address.String(), allocator), allocator);
|
||||
obj.AddMember("ipAddress", rapidjson::Value(banned.m_Address.String(), banned.m_Address.Length(), allocator), allocator);
|
||||
obj.AddMember("nucleusId", banned.m_NucleusID, allocator);
|
||||
|
||||
document.AddMember(rapidjson::Value(idx, allocator), obj, allocator);
|
||||
|
Loading…
x
Reference in New Issue
Block a user