diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-06-17 01:58:56 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-06-17 02:27:36 -0400 |
| commit | 6416fe336cf65c3001b6428ecf2194581ada6aa2 (patch) | |
| tree | a832ccdfe7546b2b46789635900bedf37fd91892 /Source/Core/VideoCommon/Statistics.cpp | |
| parent | e981fa2073ca4d1d34396a49959137c07e9fc615 (diff) | |
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.
Diffstat (limited to 'Source/Core/VideoCommon/Statistics.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Statistics.cpp | 3 |
1 files changed, 1 insertions, 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 <cstring> #include <string> #include <utility> @@ -17,7 +16,7 @@ Statistics stats; void Statistics::ResetFrame() { - memset(&thisFrame, 0, sizeof(ThisFrame)); + thisFrame = {}; } void Statistics::SwapDL() |
