mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 852742: Remove unneeded & casted-away 'const' keyword from aParent in nsViewManager::CreateView(). r=bz
This commit is contained in:
parent
9e72173e36
commit
ce461cdc2c
@ -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);
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user