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 79720 c38c653aed70eb1580d3981ef1c379fed6e2eeef
parent 79719 44d61a68eae09394a289358361d846420de823c8
child 79721 b46ffd95bfd836109a7d9b8b504be14b2206271f
push id21421
push userbmo@edmorley.co.uk
push dateFri, 04 Nov 2011 09:04:27 +0000
treeherdermozilla-central@e6893e6c883f [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) {