Bug 1411034 - Remove the const to fix the -Wignored-qualifiers warning r=mcmanus
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 23 Oct 2017 22:51:00 +0200
changeset 685739 abd469789934f9445d81d3b9537861b7eca67793
parent 685738 82528ab21c0f84adeda6e794d7000f195fce5888
child 685740 785beebca649e2414245c409bcbce5df61bf8e89
push id86016
push userkgupta@mozilla.com
push dateWed, 25 Oct 2017 01:53:44 +0000
reviewersmcmanus
bugs1411034
milestone58.0a1
Bug 1411034 - Remove the const to fix the -Wignored-qualifiers warning r=mcmanus MozReview-Commit-ID: AQ66p3bh9uX
netwerk/cache/nsDiskCacheEntry.h
--- 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);