summaryrefslogtreecommitdiff
path: root/basctl
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 /basctl
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 'basctl')
-rw-r--r--basctl/source/basicide/basobj2.cxx4
-rw-r--r--basctl/source/inc/basobj.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx
index 1b63b99b092a..d145d14fb634 100644
--- a/basctl/source/basicide/basobj2.cxx
+++ b/basctl/source/basicide/basobj2.cxx
@@ -77,9 +77,9 @@ void Organize(weld::Window* pParent, sal_Int16 tabId)
weld::DialogController::runAsync(xDlg, [](int) {});
}
-bool IsValidSbxName( const OUString& rName )
+bool IsValidSbxName( std::u16string_view rName )
{
- for ( sal_Int32 nChar = 0; nChar < rName.getLength(); nChar++ )
+ for ( size_t nChar = 0; nChar < rName.size(); nChar++ )
{
sal_Unicode c = rName[nChar];
bool bValid = (
diff --git a/basctl/source/inc/basobj.hxx b/basctl/source/inc/basobj.hxx
index 46d0f9392896..90cb82c13b61 100644
--- a/basctl/source/inc/basobj.hxx
+++ b/basctl/source/inc/basobj.hxx
@@ -45,7 +45,7 @@ namespace basctl
void BasicStopped( bool* pbAppWindowDisabled = nullptr, bool* pbDispatcherLocked = nullptr, sal_uInt16* pnWaitCount = nullptr,
SfxUInt16Item** ppSWActionCount = nullptr, SfxUInt16Item** ppSWLockViewCount = nullptr );
- bool IsValidSbxName( const OUString& rName );
+ bool IsValidSbxName( std::u16string_view rName );
BasicManager* FindBasicManager( StarBASIC const * pLib );