mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 08:39:00 +00:00
VideoCommon/Statistics: Replace memset with assignment in ResetFrame()
Same behavior, less code, and it doesn't require the type ThisFrame itself to actually be a trivially-copyable type.
This commit is contained in:
parent
e981fa2073
commit
6416fe336c
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,6 @@
|
||||||
// Licensed under GPLv2+
|
// Licensed under GPLv2+
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
#include <cstring>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
@ -17,7 +16,7 @@ Statistics stats;
|
||||||
|
|
||||||
void Statistics::ResetFrame()
|
void Statistics::ResetFrame()
|
||||||
{
|
{
|
||||||
memset(&thisFrame, 0, sizeof(ThisFrame));
|
thisFrame = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
void Statistics::SwapDL()
|
void Statistics::SwapDL()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue