deCOMtaminate nsIDocument by changing methods to use return value instead of out-params, eliminating unused nsresult return values, moving some members to nsIDocument and inlining the getters/setters. Bug 222134, r=bzbarsky, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148257 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1416,8 +1416,7 @@ void nsWebShellWindow::LoadContentAreas() {
|
||||
if (docViewer) {
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
docViewer->GetDocument(getter_AddRefs(doc));
|
||||
nsCOMPtr<nsIURI> mainURL;
|
||||
doc->GetDocumentURL(getter_AddRefs(mainURL));
|
||||
nsIURI *mainURL = doc->GetDocumentURL();
|
||||
if (mainURL) {
|
||||
nsCAutoString search;
|
||||
nsCOMPtr<nsIURL> url = do_QueryInterface(mainURL);
|
||||
|
||||
Reference in New Issue
Block a user