summaryrefslogtreecommitdiffstats
path: root/xpcom/glue
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2018-08-10 15:04:21 -0500
committertrav90 <travawine@protonmail.ch>2018-08-10 15:04:21 -0500
commite7fa5e7cb16bd39b0983386d36a88c6c3cac1bbb (patch)
tree4f40e66e7ab2f26a45ab18955a36f2a338c25fae /xpcom/glue
parent9bda00c75e7602ce1d8390ba8c229114cf8c5983 (diff)
downloadUXP-e7fa5e7cb16bd39b0983386d36a88c6c3cac1bbb.tar
UXP-e7fa5e7cb16bd39b0983386d36a88c6c3cac1bbb.tar.gz
UXP-e7fa5e7cb16bd39b0983386d36a88c6c3cac1bbb.tar.lz
UXP-e7fa5e7cb16bd39b0983386d36a88c6c3cac1bbb.tar.xz
UXP-e7fa5e7cb16bd39b0983386d36a88c6c3cac1bbb.zip
Remove the const to fix the -Wignored-qualifiers warning with GCC 8
Diffstat (limited to 'xpcom/glue')
-rw-r--r--xpcom/glue/nsTHashtable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xpcom/glue/nsTHashtable.h b/xpcom/glue/nsTHashtable.h
index 705b0294e..830f52e88 100644
--- a/xpcom/glue/nsTHashtable.h
+++ b/xpcom/glue/nsTHashtable.h
@@ -372,7 +372,7 @@ template<class EntryType>
PLDHashNumber
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>
@@ -381,7 +381,7 @@ nsTHashtable<EntryType>::s_MatchEntry(const PLDHashEntryHdr* aEntry,
const void* aKey)
{
return ((const EntryType*)aEntry)->KeyEquals(
- static_cast<const KeyTypePointer>(aKey));
+ static_cast<KeyTypePointer>(aKey));
}
template<class EntryType>