diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-05-04 10:47:12 +0900 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-05-06 14:41:26 +0000 |
commit | 7d8b03256e851f2436c05a56df5f3f61c957ff70 (patch) | |
tree | 8553710dd1a0e45891fb0b3359dc12db3e08917a /dbaccess/source/ui/app | |
parent | f1097c868afe618d99f13c28418d5df23983601d (diff) |
dbaccess: simplify code by using std::any_of/std::none_of
Change-Id: I03ed512ba20206ed38428efe324f54f79abe1933
Reviewed-on: https://gerrit.libreoffice.org/15616
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'dbaccess/source/ui/app')
-rw-r--r-- | dbaccess/source/ui/app/AppController.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx index ea2a6e76c98f..c07b651e13cf 100644 --- a/dbaccess/source/ui/app/AppController.cxx +++ b/dbaccess/source/ui/app/AppController.cxx @@ -2412,7 +2412,7 @@ sal_Int8 OApplicationController::queryDrop( const AcceptDropEvent& _rEvt, const if ( eType != E_NONE && (eType != E_TABLE || !isConnectionReadOnly()) ) { // check for the concrete type - if(::std::find_if(_rFlavors.begin(),_rFlavors.end(),TAppSupportedSotFunctor(eType,true)) != _rFlavors.end()) + if(::std::any_of(_rFlavors.begin(),_rFlavors.end(),TAppSupportedSotFunctor(eType,true))) return DND_ACTION_COPY; if ( eType == E_FORM || eType == E_REPORT ) { |