Use emplace_back over push_back where appropriate

This commit is contained in:
Tim Wojtulewicz 2023-07-06 15:53:13 -07:00
parent 0d78eb1933
commit 64b78f6fb9
28 changed files with 86 additions and 86 deletions

View file

@ -1012,7 +1012,7 @@ StringValPtr StringVal::Replace(RE_Matcher* re, const String& repl, bool do_all)
break;
// s[offset .. offset+end_of_match-1] matches re.
cut_points.push_back({offset, offset + end_of_match});
cut_points.emplace_back(offset, offset + end_of_match);
offset += end_of_match;
n -= end_of_match;