summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/GameList/GameFile.cpp
diff options
context:
space:
mode:
authorspxtr <spextear@gmail.com>2015-12-15 21:00:56 -0800
committerspxtr <spextear@gmail.com>2015-12-15 21:00:56 -0800
commitf2e93215918180b21dcaba78adf21d81ef3f1e83 (patch)
tree12bd03a5e1a6f7408d2233e30196f9d5923cd1c9 /Source/Core/DolphinQt2/GameList/GameFile.cpp
parent749fc3bccc82221556b2443fd72816e8541423ca (diff)
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;