diff --git a/xpfe/appshell/src/nsContentTreeOwner.cpp b/xpfe/appshell/src/nsContentTreeOwner.cpp index 3249fac2222..07822a6a061 100644 --- a/xpfe/appshell/src/nsContentTreeOwner.cpp +++ b/xpfe/appshell/src/nsContentTreeOwner.cpp @@ -402,9 +402,9 @@ NS_IMETHODIMP nsContentTreeOwner::SetStatus(PRUint32 aStatusType, const PRUnichar* aStatus) { return SetStatusWithContext(aStatusType, - aStatus ? nsDependentString(aStatus) - : EmptyString(), - nsnull); + aStatus ? NS_STATIC_CAST(const nsString &, nsDependentString(aStatus)) + : EmptyString(), + nsnull); } NS_IMETHODIMP nsContentTreeOwner::SetWebBrowser(nsIWebBrowser* aWebBrowser)