From 1b2a0f217a1b49cae815793f8e8d8bef2b32af31 Mon Sep 17 00:00:00 2001 From: "locka%iol.ie" Date: Wed, 7 Nov 2001 19:03:39 +0000 Subject: [PATCH] Workaround for problem in PromiseFlatString class. b=108880 r=adamlock@netscape.com sr=scc@mozilla.org --- docshell/base/nsDefaultURIFixup.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docshell/base/nsDefaultURIFixup.cpp b/docshell/base/nsDefaultURIFixup.cpp index 2c76e943a84..872970f9b48 100644 --- a/docshell/base/nsDefaultURIFixup.cpp +++ b/docshell/base/nsDefaultURIFixup.cpp @@ -80,12 +80,12 @@ nsDefaultURIFixup::CreateFixupURI(const PRUnichar *aStringURI, PRUint32 aFixupFl { nsCOMPtr uri; PRUint32 newFixupFlags = aFixupFlags & ~FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP; - nsresult rv = CreateFixupURI( - PromiseFlatString(Substring(uriString, - 12, - uriString.Length() - 12)).get(), - newFixupFlags, - getter_AddRefs(uri)); + + nsAutoString tempString; + tempString = Substring(uriString, 12, uriString.Length() - 12); + nsresult rv = CreateFixupURI(tempString.get(), + newFixupFlags, + getter_AddRefs(uri)); if (NS_FAILED(rv) || !uri) return NS_ERROR_FAILURE; nsXPIDLCString spec;