diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-21 09:05:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-21 12:29:46 +0200 |
commit | 639511d7194726b188a2ecae9b3489a250532d03 (patch) | |
tree | af8195623e940c171934b9bbbe16acbc38e0d378 /include/test | |
parent | cf46500243c51071227e08c5067041e414180ebc (diff) |
use for-range on Sequence in i18npool..sd
Change-Id: I19eba57bc6058c317473d0746f06699a09ba2830
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94608
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/test')
-rw-r--r-- | include/test/testinteractionhandler.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/test/testinteractionhandler.hxx b/include/test/testinteractionhandler.hxx index 8d63b7ae9546..1cfdec663d33 100644 --- a/include/test/testinteractionhandler.hxx +++ b/include/test/testinteractionhandler.hxx @@ -82,9 +82,9 @@ public: if (handlePasswordRequest(rContinuations, aRequest)) return true; - for (sal_Int32 i = 0; i < rContinuations.getLength(); ++i) + for (auto const & cont : rContinuations) { - css::uno::Reference<css::task::XInteractionApprove> xApprove(rContinuations[i], css::uno::UNO_QUERY); + css::uno::Reference<css::task::XInteractionApprove> xApprove(cont, css::uno::UNO_QUERY); if (xApprove.is()) xApprove->select(); } @@ -121,23 +121,23 @@ public: } mbPasswordRequested = true; - for (sal_Int32 i = 0; i < rContinuations.getLength(); ++i) + for (auto const & cont : rContinuations) { if (mode == css::task::PasswordRequestMode_PASSWORD_REENTER) { // cancel re-enter of wrong password, to avoid infinite loop - css::uno::Reference<css::task::XInteractionAbort> const xAbort(rContinuations[i], css::uno::UNO_QUERY); + css::uno::Reference<css::task::XInteractionAbort> const xAbort(cont, css::uno::UNO_QUERY); if (xAbort.is()) xAbort->select(); } else if (bIsRequestPasswordToModify) { - css::uno::Reference<css::task::XInteractionPassword2> const xIPW2(rContinuations[i], css::uno::UNO_QUERY); + css::uno::Reference<css::task::XInteractionPassword2> const xIPW2(cont, css::uno::UNO_QUERY); xIPW2->setPasswordToModify(msPassword); xIPW2->select(); } else { - css::uno::Reference<css::task::XInteractionPassword> const xIPW(rContinuations[i], css::uno::UNO_QUERY); + css::uno::Reference<css::task::XInteractionPassword> const xIPW(cont, css::uno::UNO_QUERY); if (xIPW.is()) { xIPW->setPassword(msPassword); |