From 5f6d6a5a338afc888215f1edfb1ef533a703fc2d Mon Sep 17 00:00:00 2001 From: Ginn Chen Date: Thu, 14 Aug 2008 15:18:36 +0800 Subject: [PATCH] Bug 449749 nsWindowWatcher.cpp failed to compile with Sun Studio 12 r+sr=roc --- .../components/windowwatcher/src/nsWindowWatcher.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/embedding/components/windowwatcher/src/nsWindowWatcher.cpp b/embedding/components/windowwatcher/src/nsWindowWatcher.cpp index fa05e910832..c4455a32c59 100644 --- a/embedding/components/windowwatcher/src/nsWindowWatcher.cpp +++ b/embedding/components/windowwatcher/src/nsWindowWatcher.cpp @@ -686,10 +686,10 @@ nsWindowWatcher::OpenWindowJSInternal(nsIDOMWindow *aParent, parentWidget->IsVisible(parentVisible); } PRBool cancel = PR_FALSE; - rv = windowCreator2->CreateChromeWindow2(parentVisible ? parentChrome : nsnull, chromeFlags, - contextFlags, uriToLoad, - &cancel, - getter_AddRefs(newChrome)); + rv = windowCreator2->CreateChromeWindow2( + parentVisible ? parentChrome.get() : nsnull, + chromeFlags, contextFlags, uriToLoad, &cancel, + getter_AddRefs(newChrome)); if (NS_SUCCEEDED(rv) && cancel) { newChrome = 0; // just in case rv = NS_ERROR_ABORT;