summaryrefslogtreecommitdiff
path: root/sc/qa/unit
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-05-18 15:16:17 +0900
committerDavid Tardon <dtardon@redhat.com>2015-05-19 07:36:31 +0000
commit023e945ab298bfa6e73eb6b82789fc2fca97f247 (patch)
treee75d78cd56d4d7335ecf9edb0221b0c0a30d22a1 /sc/qa/unit
parent6c3e4b8e5430a80678bd5a77b781a2218be349a1 (diff)
sc: simplify code by replacing std::find_if with std::any_of
... or std::none_of. Change-Id: I84808bedbaf098f7c4c987ea62d0ccc4a2b7c2f5 Reviewed-on: https://gerrit.libreoffice.org/15780 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'sc/qa/unit')
-rw-r--r--sc/qa/unit/subsequent_filters-test.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index b0286e66b1ff..c0b12d385a6d 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -75,6 +75,7 @@
#include "helper/qahelper.hxx"
#include "helper/shared_test_impl.hxx"
+#include <algorithm>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -1701,7 +1702,7 @@ public:
bool hasDimension(const std::vector<const ScDPSaveDimension*>& rDims, const OUString& aName)
{
- return std::find_if(rDims.begin(), rDims.end(), FindDimByName(aName)) != rDims.end();
+ return std::any_of(rDims.begin(), rDims.end(), FindDimByName(aName));
}
}