Bug 94199, part 3, add GetValue method to nsISupportsKey, r=bsmedberg
authorNeil Deakin <neil@mozilla.com>
Thu, 03 Nov 2011 16:39:08 -0400
changeset 79699 c38c653aed70eb1580d3981ef1c379fed6e2eeef
parent 79698 44d61a68eae09394a289358361d846420de823c8
child 79700 b46ffd95bfd836109a7d9b8b504be14b2206271f
push id3103
push userneil@mozilla.com
push dateThu, 03 Nov 2011 20:41:05 +0000
treeherdermozilla-inbound@797d8083efca [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs94199
milestone10.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 94199, part 3, add GetValue method to nsISupportsKey, r=bsmedberg
xpcom/ds/nsHashtable.h
--- a/xpcom/ds/nsHashtable.h
+++ b/xpcom/ds/nsHashtable.h
@@ -262,16 +262,18 @@ class nsISupportsKey : public nsHashKey 
     }
 
     nsHashKey *Clone() const {
         return new nsISupportsKey(mKey);
     }
 
     nsISupportsKey(nsIObjectInputStream* aStream, nsresult *aResult);
     nsresult Write(nsIObjectOutputStream* aStream) const;
+
+    nsISupports* GetValue() { return mKey; }
 };
 
 
 class nsPRUint32Key : public nsHashKey {
 protected:
     PRUint32 mKey;
 public:
     nsPRUint32Key(PRUint32 key) {