Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Hopefully kill a stupid warning on Windows.
  • Loading branch information
jordan-woyak committed Feb 20, 2013
1 parent b7fae1f commit f3e91bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Common/Src/FileUtil.cpp
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Common/Src/FileUtil.h
Expand Up @@ -160,7 +160,7 @@ class IOFile
~IOFile();

IOFile(IOFile&& other);
IOFile& operator=(IOFile other);
IOFile& operator=(IOFile&& other);

void Swap(IOFile& other);

Expand Down

0 comments on commit f3e91bc

Please sign in to comment.