bug 155328, r=bz, sr=jst

fix uninitialized return value in nsViewManager::Init
This commit is contained in:
rginda%netscape.com 2002-07-26 23:09:06 +00:00
parent 24571ccb3b
commit 6f3b89570e

View File

@ -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)