summaryrefslogtreecommitdiff
path: root/cui/source/options/optpath.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-04-29 01:31:19 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-04-29 23:15:40 +0200
commit00e2762c664614a1b33f54dfc990ba29f0f81a07 (patch)
tree976d1d94d6d1e52812e128a5dfbcb3540ef9a42b /cui/source/options/optpath.cxx
parent8755c80018bec656e1b102da25edc450da4eee52 (diff)
Drop uses of css::uno::Sequence::getConstArray in cppuhelper .. cui
where it was obsoleted by commits 2484de6728bd11bb7949003d112f1ece2223c7a1 (Remove non-const Sequence::begin()/end() in internal code, 2021-10-15) and fb3c04bd1930eedacd406874e1a285d62bbf27d9 (Drop non-const Sequence::operator[] in internal code 2021-11-05). Change-Id: Ia2b60af973183bbe79656e67b5e37d7efa39a308 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166817 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'cui/source/options/optpath.cxx')
-rw-r--r--cui/source/options/optpath.cxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx
index 4a410af07c4b..f75f354c9c6f 100644
--- a/cui/source/options/optpath.cxx
+++ b/cui/source/options/optpath.cxx
@@ -621,14 +621,11 @@ void SvxPathTabPage::GetPathList(
Sequence< OUString > aPathSeq;
if ( aAny >>= aPathSeq )
{
- tools::Long i, nCount = aPathSeq.getLength();
- const OUString* pPaths = aPathSeq.getConstArray();
-
- for ( i = 0; i < nCount; ++i )
+ for (auto& path : aPathSeq)
{
if ( !_rInternalPath.isEmpty() )
_rInternalPath += ";";
- _rInternalPath += pPaths[i];
+ _rInternalPath += path;
}
}
// load user paths
@@ -636,14 +633,11 @@ void SvxPathTabPage::GetPathList(
sCfgName + POSTFIX_USER);
if ( aAny >>= aPathSeq )
{
- tools::Long i, nCount = aPathSeq.getLength();
- const OUString* pPaths = aPathSeq.getConstArray();
-
- for ( i = 0; i < nCount; ++i )
+ for (auto& path : aPathSeq)
{
if ( !_rUserPath.isEmpty() )
_rUserPath += ";";
- _rUserPath += pPaths[i];
+ _rUserPath += path;
}
}
// then the writable path