[Quest API] Cleanup string copies and push_backs. (#2807)

# Notes
- Several places use `push_back` instead of `emplace_back`.
- Several places use `std::string` instead of `const std::string&`.
This commit is contained in:
Alex King
2023-01-29 15:14:49 -05:00
committed by GitHub
parent 0fef46a6c1
commit bcc2e022dc
21 changed files with 372 additions and 397 deletions
+2 -2
View File
@@ -375,7 +375,7 @@ void Client::GoFish()
if (inst) {
std::vector<std::any> args;
args.push_back(inst);
args.emplace_back(inst);
parse->EventPlayer(EVENT_FISH_SUCCESS, this, "", inst->GetID(), &args);
}
}
@@ -495,7 +495,7 @@ void Client::ForageItem(bool guarantee) {
if (inst) {
std::vector<std::any> args;
args.push_back(inst);
args.emplace_back(inst);
parse->EventPlayer(EVENT_FORAGE_SUCCESS, this, "", inst->GetID(), &args);
}
}