From 968278d8f8a40220ab2cfc9ed7f209e386e78ffd Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Wed, 5 Apr 2023 11:24:12 -0400 Subject: [PATCH] [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/ --- common/cli/eqemu_command_handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cli/eqemu_command_handler.cpp b/common/cli/eqemu_command_handler.cpp index 3162d400a..1059ea2cf 100644 --- a/common/cli/eqemu_command_handler.cpp +++ b/common/cli/eqemu_command_handler.cpp @@ -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);