Bug 1411034 - Remove the const to fix the -Wignored-qualifiers warning r?mcmanus draft
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 23 Oct 2017 22:51:00 +0200
changeset 684998 2811997444e1c13670bf5606e2fbb6f47f0a3d50
parent 684997 4e5d9519b8f832ed6138f9fb10b3bf15065ae81a
child 737024 fd886fd0d527a785c3929435cfbf53751f80a3a0
push id85794
push userbmo:sledru@mozilla.com
push dateMon, 23 Oct 2017 21:42:28 +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);