mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06: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:
@ -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()
|
||||||
|
Reference in New Issue
Block a user