summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-03-18 16:34:48 -0400
committerLioncash <mathew1800@gmail.com>2018-03-18 16:34:51 -0400
commit4c2ec391996e5b6fcf62fbd9b8a13aa3c1acdfaa (patch)
treee1d03049afdf8758def4c4b8c96538d7076b4d50 /Source
parentfd956f6c697582449aa06597d5c863f00c6061f0 (diff)
DataReader: In-class initialize member variables where applicable
Allows the default constructor to be defaulted and ensures the default values are associated with the member variables directly. Also corrects a prefixed underscore in the two parameter constructor.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/VideoCommon/DataReader.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/DataReader.h b/Source/Core/VideoCommon/DataReader.h
index 788346d514..5b53a03bed 100644
--- a/Source/Core/VideoCommon/DataReader.h
+++ b/Source/Core/VideoCommon/DataReader.h
@@ -13,8 +13,8 @@
class DataReader
{
public:
- __forceinline DataReader() : buffer(nullptr), end(nullptr) {}
- __forceinline DataReader(u8* src, u8* _end) : buffer(src), end(_end) {}
+ __forceinline DataReader() = default;
+ __forceinline DataReader(u8* src, u8* end_) : buffer(src), end(end_) {}
__forceinline u8* GetPointer() { return buffer; }
__forceinline u8* operator=(u8* src)
{
@@ -60,6 +60,6 @@ public:
}
private:
- u8* __restrict buffer;
- u8* end;
+ u8* __restrict buffer = nullptr;
+ u8* end = nullptr;
};