Skip to content
Permalink
Browse files

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.
  • Loading branch information...
lioncash committed Jun 17, 2019
1 parent e981fa2 commit 6416fe336cf65c3001b6428ecf2194581ada6aa2
Showing with 1 addition and 2 deletions.
  1. +1 −2 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()

0 comments on commit 6416fe3

Please sign in to comment.
You can’t perform that action at this time.