Bug 1288578: Make public nsClassHashTable::IsEmpty. r=froydnj
authorEmilio Cobos Álvarez <ecoal95@gmail.com>
Thu, 21 Jul 2016 18:47:02 -0700
changeset 346445 2a2daf0beb006c6e2bcf4d20b0abbd26ac08608d
parent 346444 a5ee1d48d2f559ae0775463ae6cc7fee8119c3b1
child 346446 ba8cc31b9cf0ee27a5968f3dd02be24998df3c8d
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1288578
milestone50.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 1288578: Make public nsClassHashTable::IsEmpty. r=froydnj MozReview-Commit-ID: JSjT17kWYcQ
xpcom/glue/nsClassHashtable.h
--- a/xpcom/glue/nsClassHashtable.h
+++ b/xpcom/glue/nsClassHashtable.h
@@ -24,16 +24,18 @@ template<class KeyClass, class T>
 class nsClassHashtable
   : public nsBaseHashtable<KeyClass, nsAutoPtr<T>, T*>
 {
 public:
   typedef typename KeyClass::KeyType KeyType;
   typedef T* UserDataType;
   typedef nsBaseHashtable<KeyClass, nsAutoPtr<T>, T*> base_type;
 
+  using base_type::IsEmpty;
+
   nsClassHashtable() {}
   explicit nsClassHashtable(uint32_t aInitLength)
     : nsBaseHashtable<KeyClass, nsAutoPtr<T>, T*>(aInitLength)
   {
   }
 
   /**
    * Looks up aKey in the hash table. If it doesn't exist a new object of