summaryrefslogtreecommitdiff
path: root/vcl/unx/generic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-10 16:12:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-11 12:50:55 +0200
commit20571c472528c4f98fe3f55700d134915d32a49a (patch)
tree9b350824d845b8aaeb13d087ef74febb454b821b /vcl/unx/generic
parentb401896a56149aa2871b65a330a6f601a9830ccd (diff)
use more range-for on uno::Sequence
Change-Id: Ifad32425d79be5a22d33d721bdc5fb993f699759 Reviewed-on: https://gerrit.libreoffice.org/39763 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r--vcl/unx/generic/dtrans/config.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/unx/generic/dtrans/config.cxx b/vcl/unx/generic/dtrans/config.cxx
index cbd7d57770ba..b252b43bcd72 100644
--- a/vcl/unx/generic/dtrans/config.cxx
+++ b/vcl/unx/generic/dtrans/config.cxx
@@ -75,10 +75,9 @@ DtransX11ConfigItem::DtransX11ConfigItem() :
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "found %" SAL_PRIdINT32 " properties for %s\n", aValues.getLength(), SELECTION_PROPERTY );
#endif
- Any* pValue = aValues.getArray();
- for( int i = 0; i < aValues.getLength(); i++, pValue++ )
+ for( Any const & value : aValues )
{
- if( auto pLine = o3tl::tryAccess<OUString>(*pValue) )
+ if( auto pLine = o3tl::tryAccess<OUString>(value) )
{
if( !pLine->isEmpty() )
{
@@ -94,7 +93,7 @@ DtransX11ConfigItem::DtransX11ConfigItem() :
#if OSL_DEBUG_LEVEL > 1
else
fprintf( stderr, "found SelectionTimeout of type \"%s\"\n",
- OUStringToOString( pValue->getValueType().getTypeName(), osl_getThreadTextEncoding() ).getStr() );
+ OUStringToOString( value.getValueType().getTypeName(), osl_getThreadTextEncoding() ).getStr() );
#endif
}
}