mirror of https://github.com/AxioDL/metaforce.git
CGuiTextSupport: Make use of emplace_back() in AddText()
Same behavior, less code.
This commit is contained in:
parent
7b89a165bf
commit
7f20cd0883
|
@ -215,8 +215,8 @@ void CGuiTextSupport::SetFontColor(const zeus::CColor& col) {
|
|||
|
||||
void CGuiTextSupport::AddText(std::u16string_view str) {
|
||||
if (x60_renderBuf) {
|
||||
float t = GetCurrentAnimationOverAge();
|
||||
x40_primStartTimes.push_back(std::make_pair(std::max(t, x3c_curTime), x60_renderBuf->GetPrimitiveCount()));
|
||||
const float t = GetCurrentAnimationOverAge();
|
||||
x40_primStartTimes.emplace_back(std::max(t, x3c_curTime), x60_renderBuf->GetPrimitiveCount());
|
||||
}
|
||||
x0_string += str;
|
||||
ClearRenderBuffer();
|
||||
|
|
Loading…
Reference in New Issue