From c8bd6535e2ae2bdde758b51fd6581f20bb60784f Mon Sep 17 00:00:00 2001
From: "scc%mozilla.org" <scc%mozilla.org>
Date: Wed, 13 Sep 2000 02:56:52 +0000
Subject: [PATCH] if you want a pointer to the characters, you're going to have
 to |.get()| it

---
 xpcom/ds/nsHashtable.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xpcom/ds/nsHashtable.cpp b/xpcom/ds/nsHashtable.cpp
index 2275b92a86f8..1c948e1f93e2 100644
--- a/xpcom/ds/nsHashtable.cpp
+++ b/xpcom/ds/nsHashtable.cpp
@@ -457,7 +457,7 @@ nsCStringKey::Clone() const
 ////////////////////////////////////////////////////////////////////////////////
 
 nsStringKey::nsStringKey(const nsAReadableString& str)
-    : mStr(NS_CONST_CAST(PRUnichar*, NS_STATIC_CAST(const PRUnichar *, nsPromiseFlatString(str)))), mStrLen(str.Length()),  mOwnership(OWN_CLONE)
+    : mStr(NS_CONST_CAST(PRUnichar*, NS_STATIC_CAST(const PRUnichar *, nsPromiseFlatString(str).get()))), mStrLen(str.Length()),  mOwnership(OWN_CLONE)
 {
     NS_ASSERTION(mStr, "null string key");
 #ifdef DEBUG