diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-06-29 22:24:22 +0300 |
---|---|---|
committer | Arkadiy Illarionov <qarkai@gmail.com> | 2019-06-30 12:40:20 +0200 |
commit | 02872ceafb8adca47cce856d0e44107494ba2e21 (patch) | |
tree | 33a62ca57f6de9507ff1e9ccb7880372fbe91f77 /ucb/source/ucp/gio/gio_content.cxx | |
parent | 639698862d16310b60514277d59227eec37eb02a (diff) |
Simplify Sequence iterations in ucb
Use range-based loops or replace with STL functions
Change-Id: I755dec47aeeed879a032eecd50dee585c392ec59
Reviewed-on: https://gerrit.libreoffice.org/74915
Tested-by: Jenkins
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'ucb/source/ucp/gio/gio_content.cxx')
-rw-r--r-- | ucb/source/ucp/gio/gio_content.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx index 841a19980824..f24fd29d132c 100644 --- a/ucb/source/ucp/gio/gio_content.cxx +++ b/ucb/source/ucp/gio/gio_content.cxx @@ -445,17 +445,9 @@ css::uno::Reference< css::sdbc::XRow > Content::getPropertyValues( { rtl::Reference< ::ucbhelper::PropertyValueSet > xRow = new ::ucbhelper::PropertyValueSet( m_xContext ); - sal_Int32 nProps; - const css::beans::Property* pProps; - - nProps = rProperties.getLength(); - pProps = rProperties.getConstArray(); - GFileInfo *pInfo = nullptr; - for( sal_Int32 n = 0; n < nProps; ++n ) + for( const css::beans::Property& rProp : rProperties ) { - const css::beans::Property& rProp = pProps[ n ]; - if ( rProp.Name == "IsDocument" ) { getFileInfo(xEnv, &pInfo, true); |