Commit b3d744fe992a13192685a8482ba90cf2046e30be

Authored by Patric Stout
1 parent b61afde0

chore(packet): also no need for && in constructor

std::move() is doing the right thing either way.
Showing 1 changed file with 1 additions and 1 deletions
src/Packet.cpp
... ... @@ -40,7 +40,7 @@ public:
40 40 {
41 41 }
42 42  
43   - Packet(PacketType packet_type, uint8_t flags, std::vector<uint8_t> &&data)
  43 + Packet(PacketType packet_type, uint8_t flags, std::vector<uint8_t> data)
44 44 : m_buffer(std::move(data)),
45 45 m_packet_type(packet_type),
46 46 m_flags(flags)
... ...