Hopefully kill a stupid warning on Windows.

This commit is contained in:
Jordan Woyak committed 2013-02-20 17:30:34 -06:00
1 parent b7fae1febb
commit f3e91bc10d
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -781,9 +781,9 @@ IOFile::IOFile(IOFile&& other)
Swap(other); Swap(other);
} }
IOFile& IOFile::operator=(IOFile other) IOFile& IOFile::operator=(IOFile&& other)
{ {
Swap(other); IOFile(std::move(other)).Swap(*this);
return *this; return *this;
} }
+1 -1
View File
@@ -160,7 +160,7 @@ public:
~IOFile(); ~IOFile();
IOFile(IOFile&& other); IOFile(IOFile&& other);
IOFile& operator=(IOFile other); IOFile& operator=(IOFile&& other);
void Swap(IOFile& other); void Swap(IOFile& other);