Hopefully kill a stupid warning on Windows.

This commit is contained in:
Jordan Woyak 2013-02-20 17:30:34 -06:00
parent b7fae1febb
commit f3e91bc10d
2 changed files with 3 additions and 3 deletions

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;
} }

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);