diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-05-01 23:07:32 +0900 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-07 14:05:16 +0000 |
commit | 6a26624d8ba9d37481e75f5c952dff9c6dd86fb6 (patch) | |
tree | b4dba17480c2ec71068c0f5a8ebdaddca23a7f82 /vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | |
parent | 5a7c1bc635c7e0377bb743d91b0cf385397b7337 (diff) |
vcl: simplify code by using std::any_of/std::none_of
Change-Id: I37c4fd80780738b823c7928f22deaff0ea1c6bff
Reviewed-on: https://gerrit.libreoffice.org/15585
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx')
-rw-r--r-- | vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx index aef326cb8f91..d47e35db9883 100644 --- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx +++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx @@ -459,7 +459,7 @@ namespace { else // a filter group -> search the sub filters bMatch = - _rEntry.endSubFilters() != ::std::find_if( + ::std::any_of( _rEntry.beginSubFilters(), _rEntry.endSubFilters(), *this @@ -481,7 +481,7 @@ bool SalGtkFilePicker::FilterNameExists( const OUString& rTitle ) if( m_pFilterList ) bRet = - m_pFilterList->end() != ::std::find_if( + ::std::any_of( m_pFilterList->begin(), m_pFilterList->end(), FilterTitleMatch( rTitle ) @@ -499,7 +499,7 @@ bool SalGtkFilePicker::FilterNameExists( const UnoFilterList& _rGroupedFilters ) const UnoFilterEntry* pStart = _rGroupedFilters.getConstArray(); const UnoFilterEntry* pEnd = pStart + _rGroupedFilters.getLength(); for( ; pStart != pEnd; ++pStart ) - if( m_pFilterList->end() != ::std::find_if( + if( ::std::any_of( m_pFilterList->begin(), m_pFilterList->end(), FilterTitleMatch( pStart->First ) ) ) |