From cdf11094c243b46254d6d7b7c2cc5b512f7ad265 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Thu, 26 Apr 2007 02:37:27 +0000 Subject: [PATCH] Make sure to return at the end of a method that returns nsresult, in case callers are actually checking the return value. Bug 378827, patch by Ryan VanderMeulen , r+sr=bzbarsky git-svn-id: svn://10.0.0.236/trunk@225069 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsDocumentViewer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mozilla/layout/base/nsDocumentViewer.cpp b/mozilla/layout/base/nsDocumentViewer.cpp index 2f941bbb73c..168da38ae67 100644 --- a/mozilla/layout/base/nsDocumentViewer.cpp +++ b/mozilla/layout/base/nsDocumentViewer.cpp @@ -1263,6 +1263,8 @@ DocumentViewerImpl::PageHide(PRBool aIsUnload) // the unload event listeners open any new popups if (mPresShell) mPresShell->HidePopups(); + + return NS_OK; } static void