CGuiTextSupport: Make use of emplace_back() in AddText()

Same behavior, less code.
This commit is contained in:
Lioncash 2020-01-28 00:22:16 -05:00
parent 7b89a165bf
commit 7f20cd0883
1 changed files with 2 additions and 2 deletions

View File

@ -215,8 +215,8 @@ void CGuiTextSupport::SetFontColor(const zeus::CColor& col) {
void CGuiTextSupport::AddText(std::u16string_view str) { void CGuiTextSupport::AddText(std::u16string_view str) {
if (x60_renderBuf) { if (x60_renderBuf) {
float t = GetCurrentAnimationOverAge(); const float t = GetCurrentAnimationOverAge();
x40_primStartTimes.push_back(std::make_pair(std::max(t, x3c_curTime), x60_renderBuf->GetPrimitiveCount())); x40_primStartTimes.emplace_back(std::max(t, x3c_curTime), x60_renderBuf->GetPrimitiveCount());
} }
x0_string += str; x0_string += str;
ClearRenderBuffer(); ClearRenderBuffer();