diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-29 13:37:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-01 08:30:27 +0200 |
commit | 595f46344e18fd6275ff7b862269e4c131449591 (patch) | |
tree | 0de2d2e300399b9aa9c0fea2dd6ca2155f8a231a /svx/source/accessibility | |
parent | 44e700f70d750cf1c6aac89d0dd07a4f57879b1b (diff) |
loplugin:unuseddefaultparam in svx (part1)
Change-Id: I0fc8d00447491e8474508952c21d07aa22b6f055
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r-- | svx/source/accessibility/AccessibleTextHelper.cxx | 16 | ||||
-rw-r--r-- | svx/source/accessibility/svxrectctaccessiblecontext.cxx | 4 |
2 files changed, 7 insertions, 13 deletions
diff --git a/svx/source/accessibility/AccessibleTextHelper.cxx b/svx/source/accessibility/AccessibleTextHelper.cxx index cf8e50f5c997..2d1b0296e611 100644 --- a/svx/source/accessibility/AccessibleTextHelper.cxx +++ b/svx/source/accessibility/AccessibleTextHelper.cxx @@ -187,7 +187,7 @@ namespace accessibility // lock solar mutex before SvxViewForwarder& GetViewForwarder() const; // lock solar mutex before - SvxEditViewForwarder& GetEditViewForwarder( bool bCreate = false ) const; + SvxEditViewForwarder& GetEditViewForwarder() const; // are we in edit mode? bool IsActive() const; @@ -306,29 +306,23 @@ namespace accessibility throw uno::RuntimeException("View forwarder is invalid, model might be dead", mxFrontEnd); } - SvxEditViewForwarder& AccessibleTextHelper_Impl::GetEditViewForwarder( bool bCreate ) const + SvxEditViewForwarder& AccessibleTextHelper_Impl::GetEditViewForwarder() const { if( !maEditSource.IsValid() ) throw uno::RuntimeException("Unknown edit source", mxFrontEnd); - SvxEditViewForwarder* pViewForwarder = maEditSource.GetEditViewForwarder( bCreate ); + SvxEditViewForwarder* pViewForwarder = maEditSource.GetEditViewForwarder(); if( !pViewForwarder ) { - if( bCreate ) - throw uno::RuntimeException("Unable to fetch edit view forwarder, model might be dead", mxFrontEnd); - else - throw uno::RuntimeException("No edit view forwarder, object not in edit mode", mxFrontEnd); + throw uno::RuntimeException("No edit view forwarder, object not in edit mode", mxFrontEnd); } if( pViewForwarder->IsValid() ) return *pViewForwarder; else { - if( bCreate ) - throw uno::RuntimeException("View forwarder is invalid, model might be dead", mxFrontEnd); - else - throw uno::RuntimeException("View forwarder is invalid, object not in edit mode", mxFrontEnd); + throw uno::RuntimeException("View forwarder is invalid, object not in edit mode", mxFrontEnd); } } diff --git a/svx/source/accessibility/svxrectctaccessiblecontext.cxx b/svx/source/accessibility/svxrectctaccessiblecontext.cxx index 69288d85e542..358265234673 100644 --- a/svx/source/accessibility/svxrectctaccessiblecontext.cxx +++ b/svx/source/accessibility/svxrectctaccessiblecontext.cxx @@ -630,10 +630,10 @@ void SvxRectCtlAccessibleContext::selectChild( long nNew, bool bFireFocus ) } } -void SvxRectCtlAccessibleContext::selectChild(RECT_POINT eButton, bool bFireFocus ) +void SvxRectCtlAccessibleContext::selectChild(RECT_POINT eButton ) { // no guard -> is done in next selectChild - selectChild(PointToIndex( eButton, mbAngleMode ), bFireFocus); + selectChild(PointToIndex( eButton, mbAngleMode )); } void SvxRectCtlAccessibleContext::CommitChange( const AccessibleEventObject& rEvent ) |