Bug 852742: Remove unneeded & casted-away 'const' keyword from aParent in nsViewManager::CreateView(). r=bz

This commit is contained in:
Daniel Holbert 2013-03-19 23:10:25 -07:00
parent 9e72173e36
commit ce461cdc2c
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ public:
* @result The new view. Never null.
*/
nsView* CreateView(const nsRect& aBounds,
const nsView* aParent,
nsView* aParent,
nsViewVisibility aVisibilityFlag = nsViewVisibility_kShow);
/**

View File

@ -126,11 +126,11 @@ nsViewManager::Init(nsDeviceContext* aContext)
nsView*
nsViewManager::CreateView(const nsRect& aBounds,
const nsView* aParent,
nsView* aParent,
nsViewVisibility aVisibilityFlag)
{
nsView *v = new nsView(this, aVisibilityFlag);
v->SetParent(const_cast<nsView*>(aParent));
v->SetParent(aParent);
v->SetPosition(aBounds.x, aBounds.y);
nsRect dim(0, 0, aBounds.width, aBounds.height);
v->SetDimensions(dim, false);