From 6f3b89570e945ba355478c0fc0bd54f5b91b36c9 Mon Sep 17 00:00:00 2001 From: "rginda%netscape.com" Date: Fri, 26 Jul 2002 23:09:06 +0000 Subject: [PATCH] bug 155328, r=bz, sr=jst fix uninitialized return value in nsViewManager::Init --- view/src/nsViewManager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/view/src/nsViewManager.cpp b/view/src/nsViewManager.cpp index 8e380aee0547..8f9292f09eb0 100644 --- a/view/src/nsViewManager.cpp +++ b/view/src/nsViewManager.cpp @@ -468,8 +468,6 @@ nsViewManager::CreateRegion(nsIRegion* *result) // holds a reference to us. NS_IMETHODIMP nsViewManager::Init(nsIDeviceContext* aContext) { - nsresult rv; - NS_PRECONDITION(nsnull != aContext, "null ptr"); if (nsnull == aContext) { @@ -503,7 +501,7 @@ NS_IMETHODIMP nsViewManager::Init(nsIDeviceContext* aContext) NS_ASSERTION(mEventQueueService, "couldn't get event queue service"); } - return rv; + return NS_OK; } NS_IMETHODIMP nsViewManager::GetRootView(nsIView *&aView)