Bug 1411034 - Remove the const to fix the -Wignored-qualifiers warning r?mcmanus
MozReview-Commit-ID: AQ66p3bh9uX
--- a/netwerk/cache/nsDiskCacheEntry.h
+++ b/netwerk/cache/nsDiskCacheEntry.h
@@ -27,17 +27,17 @@ struct nsDiskCacheEntry {
uint32_t mMetaDataSize; // includes terminating null byte
// followed by key data (mKeySize bytes)
// followed by meta data (mMetaDataSize bytes)
uint32_t Size() { return sizeof(nsDiskCacheEntry) +
mKeySize + mMetaDataSize;
}
- char* Key() { return reinterpret_cast<char*const>(this) +
+ char* Key() { return reinterpret_cast<char*>(this) +
sizeof(nsDiskCacheEntry);
}
char* MetaData()
{ return Key() + mKeySize; }
nsCacheEntry * CreateCacheEntry(nsCacheDevice * device);