Kaydet (Commit) 125c845f authored tarafından Caolán McNamara's avatar Caolán McNamara

attempt to address reported loplugin:vclwidgets warning

Change-Id: I6ccefa2d5d1c57cf9f1c4041d14c92d03ded1333
üst f958db47
......@@ -413,7 +413,7 @@ class VCL_DLLPUBLIC MenuBar : public Menu
bool mbFloatBtnVisible : 1;
bool mbHideBtnVisible : 1;
bool mbDisplayable : 1;
SystemWindow* mpAssociatedSystemWindow;
VclPtr<SystemWindow> mxAssociatedSystemWindow;
friend class Application;
friend class Menu;
......
......@@ -2494,9 +2494,9 @@ MenuBar::MenuBar(SystemWindow* pAssociatedSystemWindow)
mbFloatBtnVisible(false),
mbHideBtnVisible(false),
mbDisplayable(true),
mpAssociatedSystemWindow(pAssociatedSystemWindow)
mxAssociatedSystemWindow(pAssociatedSystemWindow)
{
mpSalMenu = ImplGetSVData()->mpDefInst->CreateMenu(true, this, mpAssociatedSystemWindow);
mpSalMenu = ImplGetSVData()->mpDefInst->CreateMenu(true, this, mxAssociatedSystemWindow.get());
}
MenuBar::MenuBar( const MenuBar& rMenu )
......@@ -2506,7 +2506,7 @@ MenuBar::MenuBar( const MenuBar& rMenu )
mbHideBtnVisible(false),
mbDisplayable(true)
{
mpSalMenu = ImplGetSVData()->mpDefInst->CreateMenu(true, this, mpAssociatedSystemWindow);
mpSalMenu = ImplGetSVData()->mpDefInst->CreateMenu(true, this, mxAssociatedSystemWindow.get());
*this = rMenu;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment