From ae9444af4db682e35d3ed9753b7984fc9d604f29 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 23 Oct 2017 22:42:35 +0200 Subject: [PATCH] Bug 1411034 - Remove the const to fix the -Wignored-qualifiers warning r=erahm MozReview-Commit-ID: 8AvGwUQsdE8 --HG-- extra : rebase_source : 25b61a81b83ff3fa65ab15a23af92a56e3a6be12 --- xpcom/ds/nsTHashtable.h | 4 ++-- xpcom/string/nsReadableUtilsImpl.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xpcom/ds/nsTHashtable.h b/xpcom/ds/nsTHashtable.h index 2d9805e83834..030db73ecc5f 100644 --- a/xpcom/ds/nsTHashtable.h +++ b/xpcom/ds/nsTHashtable.h @@ -414,7 +414,7 @@ template PLDHashNumber nsTHashtable::s_HashKey(const void* aKey) { - return EntryType::HashKey(static_cast(aKey)); + return EntryType::HashKey(static_cast(aKey)); } template @@ -423,7 +423,7 @@ nsTHashtable::s_MatchEntry(const PLDHashEntryHdr* aEntry, const void* aKey) { return ((const EntryType*)aEntry)->KeyEquals( - static_cast(aKey)); + static_cast(aKey)); } template diff --git a/xpcom/string/nsReadableUtilsImpl.h b/xpcom/string/nsReadableUtilsImpl.h index ff1497b5148e..94f18dffc62e 100644 --- a/xpcom/string/nsReadableUtilsImpl.h +++ b/xpcom/string/nsReadableUtilsImpl.h @@ -18,7 +18,7 @@ inline bool IsASCII(char16_t aChar) { inline const char16_t* aligned(const char16_t* aPtr, const uintptr_t aMask) { return reinterpret_cast( - reinterpret_cast(aPtr) & ~aMask); + reinterpret_cast(aPtr) & ~aMask); } /**