mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 00:11:44 +00:00
Bug 512518 - nsRegressionTester.cpp doesn't compile in an optimized build. r=dbaron
--HG-- extra : rebase_source : 4d5589283048473f7bd2ba514cf09eaae13ec97e
This commit is contained in:
parent
60ae41e157
commit
0607bf560b
@ -91,7 +91,10 @@ nsRegressionTester::DumpFrameModel(nsIDOMWindow *aWindowToDump, nsILocalFile *aD
|
||||
PRBool stillLoading;
|
||||
|
||||
*aResult = DUMP_RESULT_ERROR;
|
||||
|
||||
|
||||
#ifndef DEBUG
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
#else
|
||||
nsCOMPtr<nsIDocShell> docShell;
|
||||
rv = GetDocShellFromWindow(aWindowToDump, getter_AddRefs(docShell));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
@ -133,6 +136,7 @@ nsRegressionTester::DumpFrameModel(nsIDOMWindow *aWindowToDump, nsILocalFile *aD
|
||||
fclose(fp);
|
||||
*aResult = DUMP_RESULT_COMPLETED;
|
||||
return NS_OK;
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
Loading…
x
Reference in New Issue
Block a user