Skip to content

Commit

Permalink
Add missing move calls
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMax committed Jan 1, 2024
1 parent c532060 commit 1eb871d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/lexio/bufreader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class GenericBufReader
*
* @param reader Reader to wrap with a buffer.
*/
GenericBufReader(READER &&reader) : m_reader(reader) {}
GenericBufReader(READER &&reader) : m_reader(std::move(reader)) {}

/**
* @brief Destructor.
Expand Down
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 = bufReader;
auto moveReader = std::move(bufReader);

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

0 comments on commit 1eb871d

Please sign in to comment.