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:
Lioncash 2019-06-17 01:58:56 -04:00
parent e981fa2073
commit 6416fe336c
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include <cstring>
#include <string>
#include <utility>
@ -17,7 +16,7 @@ Statistics stats;
void Statistics::ResetFrame()
{
memset(&thisFrame, 0, sizeof(ThisFrame));
thisFrame = {};
}
void Statistics::SwapDL()