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/querydesign | |
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/querydesign')
-rw-r--r-- | dbaccess/source/ui/querydesign/TableConnection.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/dbaccess/source/ui/querydesign/TableConnection.cxx b/dbaccess/source/ui/querydesign/TableConnection.cxx index 457a58481c64..b0967c4cfbaa 100644 --- a/dbaccess/source/ui/querydesign/TableConnection.cxx +++ b/dbaccess/source/ui/querydesign/TableConnection.cxx @@ -151,10 +151,9 @@ namespace dbaui bool OTableConnection::CheckHit( const Point& rMousePos ) const { // check if the point hit our line - ::std::vector<OConnectionLine*>::const_iterator aIter = ::std::find_if(m_vConnLine.begin(), - m_vConnLine.end(), - ::std::bind2nd(TConnectionLineCheckHitFunctor(),rMousePos)); - return aIter != m_vConnLine.end(); + return ::std::any_of(m_vConnLine.begin(), + m_vConnLine.end(), + ::std::bind2nd(TConnectionLineCheckHitFunctor(),rMousePos)); } bool OTableConnection::InvalidateConnection() |