diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-20 08:43:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-20 12:11:11 +0200 |
commit | 1553d3787cbe0cdababf31382bf3376a3640d8cf (patch) | |
tree | b829cc1f97dac33abdf1e592a636d6fb24497f13 /desktop/test | |
parent | c2ead5a142be19cb74127294641ec35da9e0f5c5 (diff) |
use for-range on Sequence in d*
and fix bug in GenericClipboard::initialize, where it was looping through
the arguments, but always reading the first one.
I'm guessing it was never an issue because it is always called with
only one argument
Change-Id: I8f72b6bce8c77a69c7d75115e34630e2c308261e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94553
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/test')
-rw-r--r-- | desktop/test/deployment/active/active_native.cxx | 2 | ||||
-rw-r--r-- | desktop/test/deployment/passive/passive_native.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/test/deployment/active/active_native.cxx b/desktop/test/deployment/active/active_native.cxx index 0f12544b6a6b..b024b5e4ff40 100644 --- a/desktop/test/deployment/active/active_native.cxx +++ b/desktop/test/deployment/active/active_native.cxx @@ -136,7 +136,7 @@ Provider::queryDispatches( { css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > s( Requests.getLength()); - for (sal_Int32 i = 0; i < s.getLength(); ++i) { + for (sal_Int32 i = 0; i < s.(); ++i) { s[i] = queryDispatch( Requests[i].FeatureURL, Requests[i].FrameName, Requests[i].SearchFlags); diff --git a/desktop/test/deployment/passive/passive_native.cxx b/desktop/test/deployment/passive/passive_native.cxx index 83b955a00313..7b95fff8b537 100644 --- a/desktop/test/deployment/passive/passive_native.cxx +++ b/desktop/test/deployment/passive/passive_native.cxx @@ -133,7 +133,7 @@ Provider::queryDispatches( { css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > s( Requests.getLength()); - for (sal_Int32 i = 0; i < s.getLength(); ++i) { + for (sal_Int32 i = 0; i < s.(); ++i) { s[i] = queryDispatch( Requests[i].FeatureURL, Requests[i].FrameName, Requests[i].SearchFlags); |