summaryrefslogtreecommitdiff
path: root/xmloff/source/forms
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-09-08 09:50:18 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-08 14:46:08 +0200
commit97b6fd8e9ec4c655a5b73cbb4f64be06e7057242 (patch)
treec10735e6b9cd736a3f297283327ed746db0f5d52 /xmloff/source/forms
parentb678dee6a856e3c0bd4e969db76f6a19970e5343 (diff)
Replace find_if with proper quantifier algorithms
Missed in 085269d25a705b656436feac47149296b4b4b35d Change-Id: I3cfab57232908b48d090658e0fbc948d62b3fc6f Reviewed-on: https://gerrit.libreoffice.org/60180 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/forms')
-rw-r--r--xmloff/source/forms/formcellbinding.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/xmloff/source/forms/formcellbinding.cxx b/xmloff/source/forms/formcellbinding.cxx
index 1340901ea420..a982c75cd438 100644
--- a/xmloff/source/forms/formcellbinding.cxx
+++ b/xmloff/source/forms/formcellbinding.cxx
@@ -251,15 +251,7 @@ bool FormCellBindingHelper::isSpreadsheetDocumentWhichSupplies( const Reference<
if ( xDocumentFactory.is() )
aAvailableServices = xDocumentFactory->getAvailableServiceNames( );
- const OUString* pFound = ::std::find_if(
- aAvailableServices.begin(),
- aAvailableServices.end(),
- StringCompare( _rService )
- );
- if ( pFound - aAvailableServices.getConstArray() < aAvailableServices.getLength() )
- {
- bYesItIs = true;
- }
+ bYesItIs = std::any_of( aAvailableServices.begin(), aAvailableServices.end(), StringCompare( _rService ) );
}
}
catch( const Exception& )