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
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue