mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-28 01:57:30 +09:00
Remove the const to fix the -Wignored-qualifiers warning with GCC 8
This commit is contained in:
parent
d8a8aafc2c
commit
a52bf9e82b
4 changed files with 5 additions and 5 deletions
|
|
@ -75,7 +75,7 @@ template<typename... Ts>
|
||||||
inline bool
|
inline bool
|
||||||
ThrowErrorMessage(JSContext* aCx, const ErrNum aErrorNumber, Ts&&... aArgs)
|
ThrowErrorMessage(JSContext* aCx, const ErrNum aErrorNumber, Ts&&... aArgs)
|
||||||
{
|
{
|
||||||
binding_detail::ThrowErrorMessage(aCx, static_cast<const unsigned>(aErrorNumber),
|
binding_detail::ThrowErrorMessage(aCx, static_cast<unsigned>(aErrorNumber),
|
||||||
mozilla::Forward<Ts>(aArgs)...);
|
mozilla::Forward<Ts>(aArgs)...);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
netwerk/cache/nsDiskCacheEntry.h
vendored
2
netwerk/cache/nsDiskCacheEntry.h
vendored
|
|
@ -32,7 +32,7 @@ struct nsDiskCacheEntry {
|
||||||
mKeySize + mMetaDataSize;
|
mKeySize + mMetaDataSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* Key() { return reinterpret_cast<char*const>(this) +
|
char* Key() { return reinterpret_cast<char*>(this) +
|
||||||
sizeof(nsDiskCacheEntry);
|
sizeof(nsDiskCacheEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -372,7 +372,7 @@ template<class EntryType>
|
||||||
PLDHashNumber
|
PLDHashNumber
|
||||||
nsTHashtable<EntryType>::s_HashKey(const void* aKey)
|
nsTHashtable<EntryType>::s_HashKey(const void* aKey)
|
||||||
{
|
{
|
||||||
return EntryType::HashKey(static_cast<const KeyTypePointer>(aKey));
|
return EntryType::HashKey(static_cast<KeyTypePointer>(aKey));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class EntryType>
|
template<class EntryType>
|
||||||
|
|
@ -381,7 +381,7 @@ nsTHashtable<EntryType>::s_MatchEntry(const PLDHashEntryHdr* aEntry,
|
||||||
const void* aKey)
|
const void* aKey)
|
||||||
{
|
{
|
||||||
return ((const EntryType*)aEntry)->KeyEquals(
|
return ((const EntryType*)aEntry)->KeyEquals(
|
||||||
static_cast<const KeyTypePointer>(aKey));
|
static_cast<KeyTypePointer>(aKey));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class EntryType>
|
template<class EntryType>
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ inline bool IsASCII(char16_t aChar) {
|
||||||
inline const char16_t* aligned(const char16_t* aPtr, const uintptr_t aMask)
|
inline const char16_t* aligned(const char16_t* aPtr, const uintptr_t aMask)
|
||||||
{
|
{
|
||||||
return reinterpret_cast<const char16_t*>(
|
return reinterpret_cast<const char16_t*>(
|
||||||
reinterpret_cast<const uintptr_t>(aPtr) & ~aMask);
|
reinterpret_cast<uintptr_t>(aPtr) & ~aMask);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue