diff options
Diffstat (limited to 'accessibility')
3 files changed, 6 insertions, 6 deletions
diff --git a/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx index 0b9110e361cf..12571484e69d 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx @@ -29,9 +29,9 @@ namespace accessibility namespace { /// @throws css::lang::IndexOutOfBoundsException - void checkIndex_Impl( sal_Int32 _nIndex, const OUString& _sText ) + void checkIndex_Impl( sal_Int32 _nIndex, std::u16string_view _sText ) { - if ( _nIndex >= _sText.getLength() ) + if ( _nIndex >= static_cast<sal_Int32>(_sText.size()) ) throw css::lang::IndexOutOfBoundsException(); } diff --git a/accessibility/source/extended/AccessibleGridControlTableCell.cxx b/accessibility/source/extended/AccessibleGridControlTableCell.cxx index f8a699f54823..91d84902bdee 100644 --- a/accessibility/source/extended/AccessibleGridControlTableCell.cxx +++ b/accessibility/source/extended/AccessibleGridControlTableCell.cxx @@ -33,9 +33,9 @@ namespace accessibility // FIXME this is a copy'n'paste from // source/extended/AccessibleBrowseBoxTableCell.cxx, get rid of that... /// @throws css::lang::IndexOutOfBoundsException - void checkIndex_Impl( sal_Int32 _nIndex, const OUString& _sText ) + void checkIndex_Impl( sal_Int32 _nIndex, std::u16string_view _sText ) { - if ( _nIndex >= _sText.getLength() ) + if ( _nIndex >= static_cast<sal_Int32>(_sText.size()) ) throw css::lang::IndexOutOfBoundsException(); } } diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx index b7d7d9f50d79..55fd0693718d 100644 --- a/accessibility/source/standard/vclxaccessiblelistitem.cxx +++ b/accessibility/source/standard/vclxaccessiblelistitem.cxx @@ -41,9 +41,9 @@ namespace { /// @throws css::lang::IndexOutOfBoundsException - void checkIndex_Impl( sal_Int32 _nIndex, const OUString& _sText ) + void checkIndex_Impl( sal_Int32 _nIndex, std::u16string_view _sText ) { - if ( _nIndex < 0 || _nIndex > _sText.getLength() ) + if ( _nIndex < 0 || _nIndex > static_cast<sal_Int32>(_sText.size()) ) throw css::lang::IndexOutOfBoundsException(); } } |