From 6416fe336cf65c3001b6428ecf2194581ada6aa2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 17 Jun 2019 01:58:56 -0400 Subject: [PATCH] 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. --- Source/Core/VideoCommon/Statistics.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/Statistics.cpp b/Source/Core/VideoCommon/Statistics.cpp index e8808a684d..981da2d2c9 100644 --- a/Source/Core/VideoCommon/Statistics.cpp +++ b/Source/Core/VideoCommon/Statistics.cpp @@ -2,7 +2,6 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. -#include #include #include @@ -17,7 +16,7 @@ Statistics stats; void Statistics::ResetFrame() { - memset(&thisFrame, 0, sizeof(ThisFrame)); + thisFrame = {}; } void Statistics::SwapDL()