diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-14 17:14:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-11 11:38:15 +0200 |
commit | 1f08bff31238d5818c54a0b86570689644dff087 (patch) | |
tree | d4d6f4b62a3c48ddeb85ba89818247c17f2578c8 /framework | |
parent | loplugin:unnecessaryvirtual (diff) | |
download | core-1f08bff31238d5818c54a0b86570689644dff087.tar.gz core-1f08bff31238d5818c54a0b86570689644dff087.zip |
new loplugin:shouldreturnbool
look for methods returning only 1 and/or 0, which (most of the time)
should be returning bool.
Off by default, because some of this is a matter of taste
Change-Id: Ib17782e629888255196e89d4a178618a9612a0de
Reviewed-on: https://gerrit.libreoffice.org/54379
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.cxx | 4 | ||||
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.hxx | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index e8925e9de098..a2a1df0c8e90 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -903,7 +903,7 @@ bool ToolbarLayoutManager::dockAllToolbars() return bResult; } -long ToolbarLayoutManager::childWindowEvent( VclSimpleEvent const * pEvent ) +void ToolbarLayoutManager::childWindowEvent( VclSimpleEvent const * pEvent ) { // To enable toolbar controllers to change their image when a sub-toolbar function // is activated, we need this mechanism. We have NO connection between these toolbars @@ -982,8 +982,6 @@ long ToolbarLayoutManager::childWindowEvent( VclSimpleEvent const * pEvent ) } } } - - return 1; } void ToolbarLayoutManager::resetDockingArea() diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.hxx b/framework/source/layoutmanager/toolbarlayoutmanager.hxx index def4ea56fedd..12dfffe46e50 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.hxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.hxx @@ -125,7 +125,7 @@ class ToolbarLayoutManager : public ::cppu::WeakImplHelper< css::awt::XDockableW css::uno::Sequence< css::uno::Reference< css::ui::XUIElement > > getToolbars(); // child window notifications - long childWindowEvent( VclSimpleEvent const * pEvent ); + void childWindowEvent( VclSimpleEvent const * pEvent ); // XInterface |