diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2013-02-20 17:30:34 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2013-02-20 17:30:34 -0600 |
| commit | f3e91bc10de42648f5f8c515b013f22218e14cd4 (patch) | |
| tree | 9aca919dbe9dc0e84b98cad95a7c23d69424f545 /Source/Core/Common/Src/FileUtil.cpp | |
| parent | b7fae1febb77629032122c710ac3a882c309ffdf (diff) | |
Hopefully kill a stupid warning on Windows.
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/FileUtil.cpp | 4 |
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; } |
