diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-11-27 20:50:44 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2013-12-02 12:32:02 +0000 |
commit | 5b8b567762c6573eaf35ffa6508c0354fba68f34 (patch) | |
tree | a26aca457810e0fef64c98a581b09d7825238898 | |
parent | 4e5ec5476cde6861ead84202b2904bd96f4c307c (diff) |
sc: no such thing as std::vector::find
Change-Id: I11bb688a8e0affda9ed78a61d9aba3d244914f8c
-rw-r--r-- | sc/source/filter/oox/threadpool.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/filter/oox/threadpool.cxx b/sc/source/filter/oox/threadpool.cxx index 9de1a1454ceb..834966109de7 100644 --- a/sc/source/filter/oox/threadpool.cxx +++ b/sc/source/filter/oox/threadpool.cxx @@ -9,6 +9,9 @@ #include "threadpool.hxx" +#include <algorithm> + + class ThreadPool::ThreadWorker : public salhelper::Thread { ThreadPool *mpPool; @@ -102,7 +105,8 @@ void ThreadPool::waitUntilWorkersDone() { rtl::Reference< ThreadWorker > xWorker = maWorkers.back(); maWorkers.pop_back(); - assert( maWorkers.find( xWorker ) == maWorkers.end() ); + assert(std::find(maWorkers.begin(), maWorkers.end(), xWorker) + == maWorkers.end()); xWorker->signalNewWork(); aGuard.clear(); { // unlocked |