Skip to content

Commit

Permalink
Don't move bufReader twice in MoveAssign test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMax committed Jan 1, 2024
1 parent 1eb871d commit ecd4f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_bufreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ TEST(GenericBufReader, MoveCtor)
TEST(GenericBufReader, MoveAssign)
{
auto bufReader = VectorBufReaderNoCopy{GetStream()};
auto moveReader = std::move(bufReader);
auto moveReader = VectorBufReaderNoCopy{};

LexIO::FillBuffer(bufReader, 8);
moveReader = std::move(bufReader);
Expand Down

0 comments on commit ecd4f24

Please sign in to comment.