Skip to content

Commit

Permalink
Avoid pessimizing move
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 4, 2023
1 parent c9ebf18 commit 15d4e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/src/api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ namespace sio {
device.data( info._data_length ) ;
device.data( info._uncompressed_length ) ;
// get back the buffer
rec_buf = std::move( device.take_buffer() ) ;
rec_buf = device.take_buffer() ;
rec_buf.resize( end_pos ) ;
return info ;
}
Expand Down

0 comments on commit 15d4e44

Please sign in to comment.