diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2018-03-03 19:18:05 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-13 10:00:59 +0100 |
commit | c409fd2e8829b00f027070f34a5b743019800c6e (patch) | |
tree | 2fff2b1d3b53525142a485684b81f0c1ba76f60a /accessibility/source | |
parent | 775b12866059defdb7ae90f7bffe8720fdaf8340 (diff) |
accessibility: simplify getSelection when possible
Change-Id: I187716bca329da0aeae9fec9f48a45a9df386130
Reviewed-on: https://gerrit.libreoffice.org/50688
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility/source')
5 files changed, 15 insertions, 15 deletions
diff --git a/accessibility/source/extended/AccessibleGridControlTableCell.cxx b/accessibility/source/extended/AccessibleGridControlTableCell.cxx index 39d76363408e..db605e334e62 100644 --- a/accessibility/source/extended/AccessibleGridControlTableCell.cxx +++ b/accessibility/source/extended/AccessibleGridControlTableCell.cxx @@ -253,19 +253,19 @@ namespace accessibility { SolarMutexGuard aSolarGuard; - return OCommonAccessibleText::getSelectedText( ); + return OUString(); } sal_Int32 SAL_CALL AccessibleGridControlTableCell::getSelectionStart( ) { SolarMutexGuard aSolarGuard; - return OCommonAccessibleText::getSelectionStart( ); + return 0; } sal_Int32 SAL_CALL AccessibleGridControlTableCell::getSelectionEnd( ) { SolarMutexGuard aSolarGuard; - return OCommonAccessibleText::getSelectionEnd( ); + return 0; } sal_Bool SAL_CALL AccessibleGridControlTableCell::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) { diff --git a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx index 54d1cbcb094f..1520a3db70eb 100644 --- a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx +++ b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx @@ -564,21 +564,21 @@ namespace accessibility SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex ); EnsureIsAlive(); - return OCommonAccessibleText::getSelectedText( ); + return OUString(); } sal_Int32 SAL_CALL AccessibleIconChoiceCtrlEntry::getSelectionStart( ) { SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex ); EnsureIsAlive(); - return OCommonAccessibleText::getSelectionStart( ); + return 0; } sal_Int32 SAL_CALL AccessibleIconChoiceCtrlEntry::getSelectionEnd( ) { SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex ); EnsureIsAlive(); - return OCommonAccessibleText::getSelectionEnd( ); + return 0; } sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) { diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index ab16ca5e6f87..9868b47c09a9 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -1026,21 +1026,21 @@ namespace accessibility SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex ); EnsureIsAlive(); - return OCommonAccessibleText::getSelectedText( ); + return OUString(); } sal_Int32 SAL_CALL AccessibleListBoxEntry::getSelectionStart( ) { SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex ); EnsureIsAlive(); - return OCommonAccessibleText::getSelectionStart( ); + return 0; } sal_Int32 SAL_CALL AccessibleListBoxEntry::getSelectionEnd( ) { SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex ); EnsureIsAlive(); - return OCommonAccessibleText::getSelectionEnd( ); + return 0; } sal_Bool SAL_CALL AccessibleListBoxEntry::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) { diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx index fe298428ca7f..90f2ac4256fd 100644 --- a/accessibility/source/standard/vclxaccessiblelistitem.cxx +++ b/accessibility/source/standard/vclxaccessiblelistitem.cxx @@ -465,7 +465,7 @@ OUString SAL_CALL VCLXAccessibleListItem::getSelectedText() SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex ); - return OCommonAccessibleText::getSelectedText(); + return OUString(); } sal_Int32 SAL_CALL VCLXAccessibleListItem::getSelectionStart() @@ -473,7 +473,7 @@ sal_Int32 SAL_CALL VCLXAccessibleListItem::getSelectionStart() SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex ); - return OCommonAccessibleText::getSelectionStart(); + return 0; } sal_Int32 SAL_CALL VCLXAccessibleListItem::getSelectionEnd() @@ -481,7 +481,7 @@ sal_Int32 SAL_CALL VCLXAccessibleListItem::getSelectionEnd() SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex ); - return OCommonAccessibleText::getSelectionEnd(); + return 0; } sal_Bool SAL_CALL VCLXAccessibleListItem::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) diff --git a/accessibility/source/standard/vclxaccessiblemenuitem.cxx b/accessibility/source/standard/vclxaccessiblemenuitem.cxx index 28020731f8f6..71c842774bde 100644 --- a/accessibility/source/standard/vclxaccessiblemenuitem.cxx +++ b/accessibility/source/standard/vclxaccessiblemenuitem.cxx @@ -281,7 +281,7 @@ OUString VCLXAccessibleMenuItem::getSelectedText() { OExternalLockGuard aGuard( this ); - return OCommonAccessibleText::getSelectedText(); + return OUString(); } @@ -289,7 +289,7 @@ sal_Int32 VCLXAccessibleMenuItem::getSelectionStart() { OExternalLockGuard aGuard( this ); - return OCommonAccessibleText::getSelectionStart(); + return 0; } @@ -297,7 +297,7 @@ sal_Int32 VCLXAccessibleMenuItem::getSelectionEnd() { OExternalLockGuard aGuard( this ); - return OCommonAccessibleText::getSelectionEnd(); + return 0; } |