summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-09-27 09:37:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-27 13:31:20 +0200
commit0a7eac8576f313dcaf27ee45326d71fd6b5aea1e (patch)
tree1af6ac4da7b61da0eb5b1a68cc2d7a7491ec1f24 /accessibility
parent322ea272bba63ba779120ca5ead4a4b40d1bb93f (diff)
use more string_view in accessibility..configmgr
Change-Id: Ie16d36faac7d06e275348ed68e6c6b2518534fd6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140636 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx4
-rw-r--r--accessibility/source/extended/AccessibleGridControlTableCell.cxx4
-rw-r--r--accessibility/source/standard/vclxaccessiblelistitem.cxx4
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();
}
}