зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1424867 - Fix some ignored-qualifiers warnings in url-classifier & reputationservice r=francois
MozReview-Commit-ID: 9lLifMbNlnO --HG-- extra : rebase_source : a69a76f97a9b4912b1de3f556114bf0804f28266
This commit is contained in:
Родитель
381f8f5795
Коммит
e68f74a508
|
@ -1015,7 +1015,7 @@ PendingLookup::GetSpecHash(nsACString& aSpec, nsACString& hexEncodedHash)
|
|||
static const char* const hex = "0123456789ABCDEF";
|
||||
hexEncodedHash.SetCapacity(2 * binaryHash.Length());
|
||||
for (size_t i = 0; i < binaryHash.Length(); ++i) {
|
||||
auto c = static_cast<const unsigned char>(binaryHash[i]);
|
||||
auto c = static_cast<unsigned char>(binaryHash[i]);
|
||||
hexEncodedHash.Append(hex[(c >> 4) & 0x0F]);
|
||||
hexEncodedHash.Append(hex[c & 0x0F]);
|
||||
}
|
||||
|
|
|
@ -104,7 +104,7 @@ struct SafebrowsingHash
|
|||
|
||||
aStr.SetCapacity(2 * len);
|
||||
for (size_t i = 0; i < len; ++i) {
|
||||
const char c = static_cast<const char>(buf[i]);
|
||||
const char c = static_cast<char>(buf[i]);
|
||||
aStr.Append(lut[(c >> 4) & 0x0F]);
|
||||
aStr.Append(lut[c & 15]);
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ void CStringToHexString(const nsACString& aIn, nsACString& aOut)
|
|||
|
||||
aOut.SetCapacity(2 * len);
|
||||
for (size_t i = 0; i < aIn.Length(); ++i) {
|
||||
const char c = static_cast<const char>(aIn[i]);
|
||||
const char c = static_cast<char>(aIn[i]);
|
||||
aOut.Append(lut[(c >> 4) & 0x0F]);
|
||||
aOut.Append(lut[c & 15]);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче