diff --git a/embedding/browser/webBrowser/nsWebBrowser.cpp b/embedding/browser/webBrowser/nsWebBrowser.cpp index 091607a76e2..16eb23c7b36 100644 --- a/embedding/browser/webBrowser/nsWebBrowser.cpp +++ b/embedding/browser/webBrowser/nsWebBrowser.cpp @@ -494,7 +494,9 @@ NS_IMETHODIMP nsWebBrowser::SetItemType(PRInt32 aItemType) NS_ENSURE_TRUE((aItemType == typeContentWrapper || aItemType == typeChromeWrapper), NS_ERROR_FAILURE); mContentType = aItemType; if (mDocShellAsItem) - mDocShellAsItem->SetItemType(mContentType == typeChromeWrapper ? typeChrome : typeContent); + mDocShellAsItem->SetItemType(mContentType == typeChromeWrapper + ? static_cast(typeChrome) + : static_cast(typeContent)); return NS_OK; } @@ -804,7 +806,8 @@ NS_IMETHODIMP nsWebBrowser::SetProperty(PRUint32 aId, PRUint32 aValue) case nsIWebBrowserSetup::SETUP_IS_CHROME_WRAPPER: { NS_ENSURE_TRUE((aValue == PR_TRUE || aValue == PR_FALSE), NS_ERROR_INVALID_ARG); - SetItemType(aValue ? typeChromeWrapper : typeContentWrapper); + SetItemType(aValue ? static_cast(typeChromeWrapper) + : static_cast(typeContentWrapper)); } break; default: diff --git a/embedding/components/windowwatcher/src/nsWindowWatcher.cpp b/embedding/components/windowwatcher/src/nsWindowWatcher.cpp index 1e68b58844e..ad12d0cd884 100644 --- a/embedding/components/windowwatcher/src/nsWindowWatcher.cpp +++ b/embedding/components/windowwatcher/src/nsWindowWatcher.cpp @@ -944,9 +944,12 @@ nsWindowWatcher::OpenWindowJSInternal(nsIDOMWindow *aParent, } } - newDocShell->LoadURI(uriToLoad, loadInfo, - windowIsNew ? nsIWebNavigation::LOAD_FLAGS_FIRST_LOAD : - nsIWebNavigation::LOAD_FLAGS_NONE, PR_TRUE); + newDocShell->LoadURI(uriToLoad, + loadInfo, + windowIsNew + ? static_cast(nsIWebNavigation::LOAD_FLAGS_FIRST_LOAD) + : static_cast(nsIWebNavigation::LOAD_FLAGS_NONE), + PR_TRUE); } // Copy the current session storage for the current domain.