diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:23:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:38 +0100 |
commit | 28034eaf925aa50d379dd5cffccc20d7edc95aec (patch) | |
tree | 5cde1f141bc0ffc5cb04a12980d0c4bce69de0f0 /sfx2/source/sidebar/SidebarPanelBase.cxx | |
parent | d930b6c2e6e3dfb9e1ed19b84a3137cc0cfbfd8c (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I7213b49b09ddcb00841aa5f63343baeab0e65fa4
Diffstat (limited to 'sfx2/source/sidebar/SidebarPanelBase.cxx')
-rw-r--r-- | sfx2/source/sidebar/SidebarPanelBase.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/sidebar/SidebarPanelBase.cxx b/sfx2/source/sidebar/SidebarPanelBase.cxx index c8d3992901e8..e8ed312ba565 100644 --- a/sfx2/source/sidebar/SidebarPanelBase.cxx +++ b/sfx2/source/sidebar/SidebarPanelBase.cxx @@ -91,7 +91,7 @@ void SAL_CALL SidebarPanelBase::disposing() ::comphelper::getProcessComponentContext())); if (xMultiplexer.is()) xMultiplexer->removeAllContextChangeEventListeners(this); - mxFrame = NULL; + mxFrame = nullptr; } } @@ -102,7 +102,7 @@ void SAL_CALL SidebarPanelBase::notifyContextChangeEvent ( { IContextChangeReceiver* pContextChangeReceiver = dynamic_cast<IContextChangeReceiver*>(mpControl.get()); - if (pContextChangeReceiver != NULL) + if (pContextChangeReceiver != nullptr) { const EnumContext aContext( EnumContext::GetApplicationEnum(rEvent.ApplicationName), @@ -117,8 +117,8 @@ void SAL_CALL SidebarPanelBase::disposing ( { (void)rEvent; - mxFrame = NULL; - mpControl = NULL; + mxFrame = nullptr; + mpControl = nullptr; } css::uno::Reference<css::frame::XFrame> SAL_CALL SidebarPanelBase::getFrame() @@ -152,7 +152,7 @@ Reference<accessibility::XAccessible> SAL_CALL SidebarPanelBase::createAccessibl (void)rxParentAccessible; // Not yet implemented. - return NULL; + return nullptr; } Reference<awt::XWindow> SAL_CALL SidebarPanelBase::getWindow() @@ -163,7 +163,7 @@ Reference<awt::XWindow> SAL_CALL SidebarPanelBase::getWindow() mpControl->GetComponentInterface(), UNO_QUERY); else - return NULL; + return nullptr; } ui::LayoutSize SAL_CALL SidebarPanelBase::getHeightForWidth (const sal_Int32 nWidth) @@ -181,7 +181,7 @@ ui::LayoutSize SAL_CALL SidebarPanelBase::getHeightForWidth (const sal_Int32 nWi Size aSize(mpControl->get_preferred_size()); return ui::LayoutSize(aSize.Height(), aSize.Height(), aSize.Height()); } - else if (pLayoutableWindow != NULL) + else if (pLayoutableWindow != nullptr) return pLayoutableWindow->GetHeightForWidth(nWidth); else if (mpControl != nullptr) { |