diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-09 14:30:32 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-10 10:09:59 +0200 |
commit | 7da15debe39b50255cc08b3fef7ae38185a9174f (patch) | |
tree | 2d779864af75a53fa5ac08f6aca794945db31e3b /framework/source/layoutmanager | |
parent | c3a3e646c921eb4fd03bd0dd772274bc36cc7510 (diff) |
loplugin:constantparam in framework
Change-Id: I41c83b6214e3af7b3a40c8e00df5f100e39ebad7
Diffstat (limited to 'framework/source/layoutmanager')
-rw-r--r-- | framework/source/layoutmanager/layoutmanager.cxx | 5 | ||||
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.cxx | 12 |
2 files changed, 8 insertions, 9 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index 737f36790bfb..30de7cbc30d1 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -2306,10 +2306,9 @@ throw (RuntimeException, std::exception) // ILayoutNotifications -void LayoutManager::requestLayout( Hint eHint ) +void LayoutManager::requestLayout() { - if ( eHint == HINT_TOOLBARSPACE_HAS_CHANGED ) - doLayout(); + doLayout(); } void LayoutManager::implts_doLayout_notify( bool bOuterResize ) diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index ad51ba12cf99..9dff9b9c1fd3 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -979,7 +979,7 @@ long ToolbarLayoutManager::childWindowEvent( VclSimpleEvent* pEvent ) if ( aToolbar.m_xUIElement.is() && !aToolbar.m_bFloating ) { implts_setLayoutDirty(); - m_pParentLayouter->requestLayout( LayoutManager::HINT_TOOLBARSPACE_HAS_CHANGED ); + m_pParentLayouter->requestLayout(); } } } @@ -3233,7 +3233,7 @@ throw( uno::RuntimeException, std::exception ) } if ( bNotify ) - m_pParentLayouter->requestLayout( LayoutManager::HINT_TOOLBARSPACE_HAS_CHANGED ); + m_pParentLayouter->requestLayout(); } } @@ -3572,7 +3572,7 @@ throw (uno::RuntimeException, std::exception) aWriteLock.clear(); if ( bNotify ) - m_pParentLayouter->requestLayout( LayoutManager::HINT_TOOLBARSPACE_HAS_CHANGED ); + m_pParentLayouter->requestLayout(); } sal_Bool SAL_CALL ToolbarLayoutManager::prepareToggleFloatingMode( const lang::EventObject& e ) @@ -3726,7 +3726,7 @@ throw (uno::RuntimeException, std::exception) aReadLock.clear(); if ( pParentLayouter ) - pParentLayouter->requestLayout( LayoutManager::HINT_TOOLBARSPACE_HAS_CHANGED ); + pParentLayouter->requestLayout(); } } else @@ -3790,7 +3790,7 @@ throw (uno::RuntimeException, std::exception) aWriteLock.clear(); if ( bLayoutDirty && pParentLayouter ) - pParentLayouter->requestLayout( LayoutManager::HINT_TOOLBARSPACE_HAS_CHANGED ); + pParentLayouter->requestLayout(); } } @@ -3943,7 +3943,7 @@ throw (uno::RuntimeException, std::exception) aWriteLock.clear(); if ( bNotify && pParentLayouter ) - pParentLayouter->requestLayout( LayoutManager::HINT_TOOLBARSPACE_HAS_CHANGED ); + pParentLayouter->requestLayout(); } } } |