Skip to content

Commit f47fc15

Browse files
metsmamrts
authored andcommitted
Fix coverity warnings
Signed-off-by: Raul Metsma <[email protected]>
1 parent 054c7ef commit f47fc15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/libpcsc-cpp/include/pcsc-cpp/pcsc-cpp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ struct ResponseApdu
131131

132132
friend std::string operator+(std::string&& lhs, const ResponseApdu& rhs)
133133
{
134-
return lhs + rhs.data + byte_vector {rhs.sw1, rhs.sw2};
134+
return std::move(lhs) + rhs.data + byte_vector {rhs.sw1, rhs.sw2};
135135
}
136136
};
137137

lib/libpcsc-cpp/src/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ std::ostream& operator<<(std::ostream& os, const pcsc_cpp::byte_vector& data)
7474
os << std::setfill('0') << std::hex;
7575
for (const auto byte : data)
7676
os << std::setw(2) << short(byte);
77-
return os;
77+
return os << std::setfill(' ') << std::dec;
7878
}
7979

8080
std::string operator+(std::string lhs, const byte_vector& rhs)

0 commit comments

Comments
 (0)