summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/GameList/GameFile.cpp
diff options
context:
space:
mode:
authorMathew Maidment <mathew1800@gmail.com>2015-12-16 00:10:53 -0500
committerMathew Maidment <mathew1800@gmail.com>2015-12-16 00:10:53 -0500
commit13296cef772dd8d4952e23a95d5980d0e0dfb74c (patch)
tree12bd03a5e1a6f7408d2233e30196f9d5923cd1c9 /Source/Core/DolphinQt2/GameList/GameFile.cpp
parent749fc3bccc82221556b2443fd72816e8541423ca (diff)
parentf2e93215918180b21dcaba78adf21d81ef3f1e83 (diff)
Merge pull request #3341 from spxtr/discio
DQt2: Repackage the unique_ptr in GameFile into a QSharedPointer
Diffstat (limited to 'Source/Core/DolphinQt2/GameList/GameFile.cpp')
-rw-r--r--Source/Core/DolphinQt2/GameList/GameFile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/GameList/GameFile.cpp b/Source/Core/DolphinQt2/GameList/GameFile.cpp
index 725e444067..6a0920e17e 100644
--- a/Source/Core/DolphinQt2/GameList/GameFile.cpp
+++ b/Source/Core/DolphinQt2/GameList/GameFile.cpp
@@ -139,7 +139,8 @@ bool GameFile::TryLoadCache()
bool GameFile::TryLoadVolume()
{
- QSharedPointer<DiscIO::IVolume> volume(DiscIO::CreateVolumeFromFilename(m_path.toStdString()));
+ QSharedPointer<DiscIO::IVolume> volume(
+ DiscIO::CreateVolumeFromFilename(m_path.toStdString()).release());
if (volume == nullptr)
return false;