summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorektagoel12 <ektagoel12july@gmail.com>2023-01-25 22:43:15 +0000
committerHossein <hossein@libreoffice.org>2023-04-06 12:09:49 +0200
commit87f52dbf4faf8dcd6fcc1b070e070b9ca8584ac4 (patch)
tree31c4c2024798d02e6d6d052dd3cb670012c31f95 /stoc
parent477374d8f5e3acfc2727b009a95427ef05297ffc (diff)
tdf#145538 Use range based for loops
Change-Id: Ib74318a36898270c7b6e45e5e064ddd696a91be8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145905 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/test/registry_tdprovider/testregistrytdprovider.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/stoc/test/registry_tdprovider/testregistrytdprovider.cxx b/stoc/test/registry_tdprovider/testregistrytdprovider.cxx
index 359c4b789f3b..879859b92e27 100644
--- a/stoc/test/registry_tdprovider/testregistrytdprovider.cxx
+++ b/stoc/test/registry_tdprovider/testregistrytdprovider.cxx
@@ -776,9 +776,9 @@ bool writeInfo(void * registryKey, OUString const & implementationName,
return false;
}
bool success = true;
- for (sal_Int32 i = 0; i < serviceNames.getLength(); ++i) {
+ for (auto const& rServiceName : serviceNames) {
try {
- key->createKey(serviceNames[i]);
+ key->createKey(rServiceName);
} catch (css::registry::InvalidRegistryException &) {
success = false;
break;