mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-03 18:53:52 +00:00
[Cleanup] Use .clear() instead of setting string to empty in eqemu_command_handler.cpp (#3195)
# Notes - `x = ""` has less performance than `x.clear()`. - https://pvs-studio.com/en/docs/warnings/v815/
This commit is contained in:
parent
aa910864c8
commit
968278d8f8
@ -160,7 +160,7 @@ namespace EQEmuCommand {
|
||||
*/
|
||||
std::string command_section;
|
||||
for (auto &it: in_function_map) {
|
||||
description = "";
|
||||
description.clear();
|
||||
|
||||
(it.second)(argc, argv, cmd, description);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user