From 0787ce8814e37972a0c968f60008d4e8722b6e27 Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Wed, 15 Aug 2018 21:32:27 +0300 Subject: Simplify containers iterations, tdf#96099 follow-up Use range-based loop or replace with std::any_of, std::find and std::find_if where applicable. Change-Id: I2f80788c49d56094c29b102eb96a7a7c079567c6 Reviewed-on: https://gerrit.libreoffice.org/59143 Tested-by: Jenkins Reviewed-by: Michael Meeks Reviewed-by: Noel Grandin --- stoc/source/javavm/javavm.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'stoc/source/javavm') diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index a954372b6728..68db4a793265 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -1399,9 +1399,8 @@ void JavaVirtualMachine::setINetSettingsInVM(bool set_reset) getINetPropsFromConfig( &jvm, m_xContext->getServiceManager(), m_xContext); const ::std::vector< OUString> & Props = jvm.getProperties(); - for( auto i= Props.cbegin(); i != Props.cend(); ++i) + for( auto& prop : Props) { - OUString prop= *i; sal_Int32 index= prop.indexOf( '='); OUString propName= prop.copy( 0, index); OUString propValue= prop.copy( index + 1); -- cgit