Bug 785067 - Outparamdel nsGlobalWindow::SaveWindowState; r=mrbkap

This commit is contained in:
Ms2ger
2012-09-06 09:20:26 +02:00
parent 636de0001c
commit 595591b549
4 changed files with 8 additions and 14 deletions

View File

@@ -6944,9 +6944,7 @@ nsDocShell::CaptureState()
if (!privWin)
return NS_ERROR_FAILURE;
nsCOMPtr<nsISupports> windowState;
nsresult rv = privWin->SaveWindowState(getter_AddRefs(windowState));
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsISupports> windowState = privWin->SaveWindowState();
#ifdef DEBUG_PAGE_CACHE
nsCOMPtr<nsIURI> uri;
@@ -6958,7 +6956,7 @@ nsDocShell::CaptureState()
printf(" SH URI: %s\n", spec.get());
#endif
rv = mOSHE->SetWindowState(windowState);
nsresult rv = mOSHE->SetWindowState(windowState);
NS_ENSURE_SUCCESS(rv, rv);
// Suspend refresh URIs and save off the timer queue