diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-09-21 13:06:03 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-09-21 13:11:34 -0400 |
| commit | fc41e982e94a265dd30012d34f61c8b6b898e748 (patch) | |
| tree | f6f3594bf16cbda675bc4e1823d2b4d6f8e4466d /Source/Core/VideoBackends/Software/SWOGLWindow.cpp | |
| parent | 99baa3268f36007c0e7b287c4cc1842448801ea3 (diff) | |
SWOGLWindow: Utilize the move constructor in PrintText
The previous code would always do a copy
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWOGLWindow.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWOGLWindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp index d5b6bf42c5..c714a97744 100644 --- a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp +++ b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp @@ -86,8 +86,7 @@ void SWOGLWindow::Prepare() void SWOGLWindow::PrintText(const std::string& text, int x, int y, u32 color) { - TextData data{text, x, y, color}; - m_text.emplace_back(data); + m_text.push_back({text, x, y, color}); } void SWOGLWindow::ShowImage(const u8* data, int stride, int width, int height, float aspect) |
