Fix -Wpessimizing-move

(cherry picked from commit 4569b4dbd6)
This commit is contained in:
Victor Zverovich
2016-06-14 15:53:40 -07:00
committed by Jonathan Müller
parent 92d3f31df5
commit 8cfff4da4c

View File

@ -232,7 +232,7 @@ TEST(FileTest, MoveAssignmentClosesFile) {
File OpenBufferedFile(int &fd) {
File f = open_file();
fd = f.descriptor();
return std::move(f);
return f;
}
TEST(FileTest, MoveFromTemporaryInCtor) {