Fix -Wpessimizing-move
This commit is contained in:
parent
c9bb5468b6
commit
4569b4dbd6
@ -232,7 +232,7 @@ TEST(FileTest, MoveAssignmentClosesFile) {
|
|||||||
File OpenBufferedFile(int &fd) {
|
File OpenBufferedFile(int &fd) {
|
||||||
File f = open_file();
|
File f = open_file();
|
||||||
fd = f.descriptor();
|
fd = f.descriptor();
|
||||||
return std::move(f);
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(FileTest, MoveFromTemporaryInCtor) {
|
TEST(FileTest, MoveFromTemporaryInCtor) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user