diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-08 16:40:23 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-09 10:07:47 +0200 |
commit | 978cfb856b013580921dc2c262565438692d4221 (patch) | |
tree | 88b41984a37043f16fa48a44bba0c13d1712f588 /accessibility/source | |
parent | 5c1c8f53d7f6fa5eeaac7fca75bafad9154e1be5 (diff) |
loplugin:constantparam in accessibility
Change-Id: I65f2f39c6bd5c222d7d8a21748ad02c521b7377d
Diffstat (limited to 'accessibility/source')
-rw-r--r-- | accessibility/source/standard/vclxaccessiblelistitem.cxx | 2 | ||||
-rw-r--r-- | accessibility/source/standard/vclxaccessibletoolboxitem.cxx | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx index 2ce3c9110d2f..26cd9d842906 100644 --- a/accessibility/source/standard/vclxaccessiblelistitem.cxx +++ b/accessibility/source/standard/vclxaccessiblelistitem.cxx @@ -377,7 +377,7 @@ awt::Point SAL_CALL VCLXAccessibleListItem::getLocationOnScreen( ) throw (Runti { Rectangle aRect = m_pListBoxHelper->GetBoundingRectangle( (sal_uInt16)m_nIndexInParent ); aPoint = aRect.TopLeft(); - aPoint += m_pListBoxHelper->GetWindowExtentsRelative( nullptr ).TopLeft(); + aPoint += m_pListBoxHelper->GetWindowExtentsRelative().TopLeft(); } return AWTPoint( aPoint ); } diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx index 8a2ec252eee0..fc4c7ed15fbb 100644 --- a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx +++ b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx @@ -74,7 +74,7 @@ VCLXAccessibleToolBoxItem::VCLXAccessibleToolBoxItem( ToolBox* _pToolBox, sal_In OSL_ENSURE( m_pToolBox, "invalid toolbox" ); m_nItemId = m_pToolBox->GetItemId( (sal_uInt16)m_nIndexInParent ); - m_sOldName = GetText( true ); + m_sOldName = GetText(); m_bIsChecked = m_pToolBox->IsItemChecked( m_nItemId ); m_bIndeterminate = ( m_pToolBox->GetItemState( m_nItemId ) == TRISTATE_INDET ); ToolBoxItemType eType = m_pToolBox->GetItemType( (sal_uInt16)m_nIndexInParent ); @@ -121,11 +121,11 @@ VCLXAccessibleToolBoxItem::~VCLXAccessibleToolBoxItem() m_pExternalLock = nullptr; } -OUString VCLXAccessibleToolBoxItem::GetText( bool _bAsName ) +OUString VCLXAccessibleToolBoxItem::GetText() { OUString sRet; // no text for separators and spaces - if ( m_pToolBox && m_nItemId > 0 && ( _bAsName || m_pToolBox->GetButtonType() != ButtonType::SYMBOLONLY ) ) + if ( m_pToolBox && m_nItemId > 0 ) { sRet = m_pToolBox->GetItemText( m_nItemId ); if (sRet.isEmpty()) @@ -249,7 +249,7 @@ awt::Rectangle VCLXAccessibleToolBoxItem::implGetBounds( ) throw (RuntimeExcept OUString VCLXAccessibleToolBoxItem::implGetText() { - return GetText (true); + return GetText(); } Locale VCLXAccessibleToolBoxItem::implGetLocale() @@ -383,7 +383,7 @@ OUString SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleName( ) throw (Runtim OExternalLockGuard aGuard( this ); // entry text == accessible name - return GetText( true ); + return GetText(); } Reference< XAccessibleRelationSet > SAL_CALL VCLXAccessibleToolBoxItem::getAccessibleRelationSet( ) throw (RuntimeException, std::exception) |