summaryrefslogtreecommitdiff
path: root/sd/source/ui/sidebar/MasterPageContainerQueue.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/sidebar/MasterPageContainerQueue.cxx')
-rw-r--r--sd/source/ui/sidebar/MasterPageContainerQueue.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/sidebar/MasterPageContainerQueue.cxx b/sd/source/ui/sidebar/MasterPageContainerQueue.cxx
index 8b9a167ad20f..5493c2be72fb 100644
--- a/sd/source/ui/sidebar/MasterPageContainerQueue.cxx
+++ b/sd/source/ui/sidebar/MasterPageContainerQueue.cxx
@@ -239,11 +239,10 @@ IMPL_LINK(MasterPageContainerQueue, DelayedPreviewCreation, Timer*, pTimer, void
bool MasterPageContainerQueue::HasRequest (MasterPageContainer::Token aToken) const
{
- RequestQueue::iterator iRequest (::std::find_if(
+ return std::any_of(
mpRequestQueue->begin(),
mpRequestQueue->end(),
- PreviewCreationRequest::CompareToken(aToken)));
- return (iRequest != mpRequestQueue->end());
+ PreviewCreationRequest::CompareToken(aToken));
}
bool MasterPageContainerQueue::IsEmpty() const