summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeGC.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-08-31 09:34:58 -0400
committerLioncash <mathew1800@gmail.com>2014-08-31 14:48:57 -0400
commit4cb46879bc2fb517d0db70d5bcb53685a9ab0102 (patch)
tree95ad6c206fdfa5c923fce2f7a4f8fe68d0c9243b /Source/Core/DiscIO/VolumeGC.cpp
parentea7eee1f585c60cfade51269e356c75c8e16955b (diff)
DiscIO: Move some raw pointers over to unique_ptr
Diffstat (limited to 'Source/Core/DiscIO/VolumeGC.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeGC.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/VolumeGC.cpp b/Source/Core/DiscIO/VolumeGC.cpp
index 63c60a9846..9c3dfadf17 100644
--- a/Source/Core/DiscIO/VolumeGC.cpp
+++ b/Source/Core/DiscIO/VolumeGC.cpp
@@ -3,6 +3,7 @@
// Refer to the license.txt file included.
#include <cstddef>
+#include <memory>
#include <string>
#include <vector>
@@ -21,8 +22,6 @@ CVolumeGC::CVolumeGC(IBlobReader* _pReader)
CVolumeGC::~CVolumeGC()
{
- delete m_pReader;
- m_pReader = nullptr; // I don't think this makes any difference, but anyway
}
bool CVolumeGC::Read(u64 _Offset, u64 _Length, u8* _pBuffer) const