summaryrefslogtreecommitdiffstats
path: root/xpcom/glue/nsTHashtable.h
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-08-13 18:52:43 +0200
committerGitHub <noreply@github.com>2018-08-13 18:52:43 +0200
commitba2882cf71d06e121b7a023f954388768a5964dd (patch)
tree70f1e0754b0bd39151721c248c3d2328f53ae71d /xpcom/glue/nsTHashtable.h
parent727eefc7c4f2b9197dc26d298340a12ca4feae36 (diff)
parent9b48c3fa58c4926341e1668fdfec131ada3147a1 (diff)
downloadUXP-ba2882cf71d06e121b7a023f954388768a5964dd.tar
UXP-ba2882cf71d06e121b7a023f954388768a5964dd.tar.gz
UXP-ba2882cf71d06e121b7a023f954388768a5964dd.tar.lz
UXP-ba2882cf71d06e121b7a023f954388768a5964dd.tar.xz
UXP-ba2882cf71d06e121b7a023f954388768a5964dd.zip
Merge pull request #706 from trav90/gcc8
Fix/silence some warnings with GCC 8
Diffstat (limited to 'xpcom/glue/nsTHashtable.h')
-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>