From 085269d25a705b656436feac47149296b4b4b35d Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Wed, 29 Aug 2018 00:47:33 +0300 Subject: Replace find_if with proper quantifier algorithms Change-Id: Icc820a47ac891c358883f9c01224f676c58fdd11 Reviewed-on: https://gerrit.libreoffice.org/59744 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sal/osl/all/debugbase.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sal/osl') diff --git a/sal/osl/all/debugbase.cxx b/sal/osl/all/debugbase.cxx index ea46777dc640..91486be50ecf 100644 --- a/sal/osl/all/debugbase.cxx +++ b/sal/osl/all/debugbase.cxx @@ -89,8 +89,8 @@ bool SAL_CALL osl_detail_ObjectRegistry_storeAddresses( char const* pName ) if ( rFirst == "all" ) return true; auto const iEnd( rVec.cend() ); - return std::find_if( rVec.begin(), iEnd, - [pName] (OString const& it) { return isSubStr(pName, it); }) != iEnd; + return std::any_of( rVec.begin(), iEnd, + [pName] (OString const& it) { return isSubStr(pName, it); }); } bool SAL_CALL osl_detail_ObjectRegistry_checkObjectCount( -- cgit