From 7d8bed29855581bf4bc366b89481cf881cd2a699 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Mon, 29 Mar 1999 22:04:04 +0000 Subject: [PATCH] fix build breakage on Linux the build breakage only happens if you build with -pedantic git-svn-id: svn://10.0.0.236/trunk@25460 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/uriloader/base/nsDocLoader.cpp | 3 ++- mozilla/webshell/src/nsDocLoader.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/uriloader/base/nsDocLoader.cpp b/mozilla/uriloader/base/nsDocLoader.cpp index fdefdca2279..2da9917752b 100644 --- a/mozilla/uriloader/base/nsDocLoader.cpp +++ b/mozilla/uriloader/base/nsDocLoader.cpp @@ -1828,7 +1828,8 @@ NS_METHOD nsDocumentBindInfo::OnStatus(nsIURL* aURL, const PRUnichar* aMsg) } /* Pass the notification out to any observers... */ - m_DocLoader->FireOnStatusURLLoad(aURL, nsAutoString(aMsg)); + nsAutoString msgStr(aMsg); + m_DocLoader->FireOnStatusURLLoad(aURL, msgStr); /* Pass the notification out to the Observer... */ if (nsnull != m_Observer) { diff --git a/mozilla/webshell/src/nsDocLoader.cpp b/mozilla/webshell/src/nsDocLoader.cpp index fdefdca2279..2da9917752b 100644 --- a/mozilla/webshell/src/nsDocLoader.cpp +++ b/mozilla/webshell/src/nsDocLoader.cpp @@ -1828,7 +1828,8 @@ NS_METHOD nsDocumentBindInfo::OnStatus(nsIURL* aURL, const PRUnichar* aMsg) } /* Pass the notification out to any observers... */ - m_DocLoader->FireOnStatusURLLoad(aURL, nsAutoString(aMsg)); + nsAutoString msgStr(aMsg); + m_DocLoader->FireOnStatusURLLoad(aURL, msgStr); /* Pass the notification out to the Observer... */ if (nsnull != m_Observer) {