bug 737863 - nsBaseHashtable::SizeOfExcludingThis should be declared const. r=njn
authorJonathan Kew <jfkthame@gmail.com>
Fri, 23 Mar 2012 12:13:56 +0000
changeset 93532 405657ee89b00dd2029b1f4828b18915dc0d6af3
parent 93531 220f36e7f9f78d656680e400b19f76c70af0eb48
child 93533 5904fd174eec2ad0eddbf23bca1c0088d6da5a48
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs737863
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 737863 - nsBaseHashtable::SizeOfExcludingThis should be declared const. r=njn
xpcom/glue/nsBaseHashtable.h
--- a/xpcom/glue/nsBaseHashtable.h
+++ b/xpcom/glue/nsBaseHashtable.h
@@ -267,17 +267,17 @@ public:
    * @param     sizeOfEntryExcludingThis the
    *            <code>SizeOfEntryExcludingThisFun</code> function to call
    * @param     mallocSizeOf the function used to measure heap-allocated blocks
    * @param     userArg a pointer to pass to the
    *            <code>SizeOfEntryExcludingThisFun</code> function
    * @return    the summed size of all the entries
    */
   size_t SizeOfExcludingThis(SizeOfEntryExcludingThisFun sizeOfEntryExcludingThis,
-                             nsMallocSizeOfFun mallocSizeOf, void *userArg = nsnull)
+                             nsMallocSizeOfFun mallocSizeOf, void *userArg = nsnull) const
   {
     if (!IsInitialized()) {
       return 0;
     }
     if (sizeOfEntryExcludingThis) {
       s_SizeOfArgs args = { sizeOfEntryExcludingThis, userArg };
       return PL_DHashTableSizeOfExcludingThis(&this->mTable, s_SizeOfStub,
                                               mallocSizeOf, &args);