Skip to content

Commit

Permalink
Use std::move() in addPaddingToPin
Browse files Browse the repository at this point in the history
WE2-1007

Signed-off-by: Mart Somermaa <[email protected]>
  • Loading branch information
mrts committed Sep 20, 2024
1 parent bbaf5b3 commit ec1884c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/electronic-ids/pcsc/pcsc-common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ inline pcsc_cpp::byte_vector addPaddingToPin(pcsc_cpp::byte_vector&& pin, size_t
pcsc_cpp::byte_type paddingChar)
{
pin.resize(std::max(pin.size(), paddingLength), paddingChar);
return pin;
return std::move(pin);
}

inline void verifyPin(pcsc_cpp::SmartCard& card, pcsc_cpp::byte_type p2,
Expand Down

0 comments on commit ec1884c

Please sign in to comment.