Kaydet (Commit) 0cdecf1a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:vclwidgets (best guess)

Change-Id: I9870b4ae7c8c11af34be1edb1ebcbab5e708f42e
üst abce3f30
......@@ -128,8 +128,8 @@ class UpdateCheckUI : public ::cppu::WeakImplHelper3
OUString maBubbleText;
OUString maBubbleImageURL;
Image maBubbleImage;
BubbleWindow* mpBubbleWin;
SystemWindow* mpIconSysWin;
VclPtr<BubbleWindow> mpBubbleWin;
VclPtr<SystemWindow> mpIconSysWin;
MenuBar* mpIconMBar;
ResMgr* mpUpdResMgr;
ResMgr* mpSfxResMgr;
......@@ -200,8 +200,6 @@ public:
UpdateCheckUI::UpdateCheckUI(const uno::Reference<uno::XComponentContext>& xContext) :
m_xContext(xContext)
, mpBubbleWin( NULL )
, mpIconSysWin( NULL )
, mpIconMBar( NULL )
, mbShowBubble( false )
, mbShowMenuIcon( false )
......@@ -557,8 +555,7 @@ void UpdateCheckUI::RemoveBubbleWindow( bool bRemoveIcon )
if ( mpBubbleWin )
{
delete mpBubbleWin;
mpBubbleWin = NULL;
mpBubbleWin.disposeAndClear();
}
if ( bRemoveIcon )
......@@ -709,7 +706,7 @@ IMPL_LINK( UpdateCheckUI, WindowEventHdl, VclWindowEvent*, pEvent )
{
SolarMutexGuard aGuard;
if ( ( mpIconSysWin == pEvent->GetWindow() ) &&
( mpBubbleWin != NULL ) && ( mpIconMBar != NULL ) )
mpBubbleWin && ( mpIconMBar != NULL ) )
{
Rectangle aIconRect = mpIconMBar->GetMenuBarButtonRectPixel( mnIconID );
Point aWinPos = aIconRect.BottomCenter();
......
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