mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
bug 155328, r=bz, sr=jst
fix uninitialized return value in nsViewManager::Init
This commit is contained in:
parent
24571ccb3b
commit
6f3b89570e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user