[Cleanup] Cleanup uses of insert/push_back when a temp object is used. (#3170)

This commit is contained in:
Aeadoin authored and GitHub committed 2023-04-03 16:45:01 -04:00
1 parent 2bb15271c5
commit f752b57a55
42 files changed
+104 -104

No files matched your search

+1 -1
View File
@@ -284,7 +284,7 @@ void DialogueWindow::Render(Client *c, std::string markdown)
size_t link_open = bracket_message.find('\x12');
size_t link_close = bracket_message.find_last_of('\x12');
if (link_open != link_close && (bracket_message.length() - link_open) > EQ::constants::SAY_LINK_BODY_SIZE) {
replacements.insert(
replacements.emplace(
std::pair<std::string, std::string>(
bracket_message,
bracket_message.substr(EQ::constants::SAY_LINK_BODY_SIZE + 1)