diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-02-04 10:36:42 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-02-04 11:39:08 -0500 |
| commit | e07679114bf33e387c2d4094cac3174650def0e5 (patch) | |
| tree | 66a99498482b3bec7e703cfc011cd4036d190b62 /Source/Core/VideoCommon/FramebufferManagerBase.cpp | |
| parent | 012a4c18ff9b8beeaafcf3e24846761e5c194a42 (diff) | |
Use emplace_* functions where in-place construction is preferable
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManagerBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FramebufferManagerBase.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/FramebufferManagerBase.cpp b/Source/Core/VideoCommon/FramebufferManagerBase.cpp index 178a157f9a..f928fec979 100644 --- a/Source/Core/VideoCommon/FramebufferManagerBase.cpp +++ b/Source/Core/VideoCommon/FramebufferManagerBase.cpp @@ -128,9 +128,7 @@ void FramebufferManagerBase::CopyToVirtualXFB(u32 xfbAddr, u32 fbWidth, u32 fbHe if (m_virtualXFBList.size() < MAX_VIRTUAL_XFB) { // create a new Virtual XFB and place it at the front of the list - VirtualXFB v; - memset(&v, 0, sizeof v); - m_virtualXFBList.push_front(v); + m_virtualXFBList.emplace_front(); vxfb = m_virtualXFBList.begin(); } else |
