Skip to content

Commit

Permalink
Add constexpr
Browse files Browse the repository at this point in the history
WE2-1007

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma committed Sep 21, 2024
1 parent ec1884c commit 82138ee
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 @@ -43,7 +43,7 @@ inline pcsc_cpp::byte_vector getCertificate(pcsc_cpp::SmartCard& card,
return readBinary(card, length, MAX_LE_VALUE);
}

inline pcsc_cpp::byte_vector addPaddingToPin(pcsc_cpp::byte_vector&& pin, size_t paddingLength,
constexpr pcsc_cpp::byte_vector addPaddingToPin(pcsc_cpp::byte_vector&& pin, size_t paddingLength,
pcsc_cpp::byte_type paddingChar)
{
pin.resize(std::max(pin.size(), paddingLength), paddingChar);
Expand Down

0 comments on commit 82138ee

Please sign in to comment.