mirror of
https://github.com/openharmony/third_party_qrcodegen.git
synced 2026-07-20 23:56:51 -04:00
Updated some C++ implementation code to be stricter by prepending std:: prefix for C standard library types.
This commit is contained in:
+2
-2
@@ -37,12 +37,12 @@ int BitBuffer::getBitLength() const {
|
||||
}
|
||||
|
||||
|
||||
std::vector<uint8_t> BitBuffer::getBytes() const {
|
||||
std::vector<std::uint8_t> BitBuffer::getBytes() const {
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
void BitBuffer::appendBits(uint32_t val, int len) {
|
||||
void BitBuffer::appendBits(std::uint32_t val, int len) {
|
||||
if (len < 0 || len > 32 || (len < 32 && (val >> len) != 0))
|
||||
throw "Value out of range";
|
||||
if (len > INT_MAX - bitLength)
|
||||
|
||||
Reference in New Issue
Block a user