summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/FileUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
-rw-r--r--Source/Core/Common/Src/FileUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp
index d6ab33962a..a2bd694438 100644
--- a/Source/Core/Common/Src/FileUtil.cpp
+++ b/Source/Core/Common/Src/FileUtil.cpp
@@ -781,9 +781,9 @@ IOFile::IOFile(IOFile&& other)
Swap(other);
}
-IOFile& IOFile::operator=(IOFile other)
+IOFile& IOFile::operator=(IOFile&& other)
{
- Swap(other);
+ IOFile(std::move(other)).Swap(*this);
return *this;
}