summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/tools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/tools.cxx')
-rw-r--r--slideshow/source/engine/tools.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/slideshow/source/engine/tools.cxx b/slideshow/source/engine/tools.cxx
index 089f473f69ac..096715a73c90 100644
--- a/slideshow/source/engine/tools.cxx
+++ b/slideshow/source/engine/tools.cxx
@@ -432,11 +432,7 @@ namespace slideshow
bool findNamedValue( uno::Sequence< beans::NamedValue > const& rSequence,
const beans::NamedValue& rSearchKey )
{
- const beans::NamedValue* pArray = rSequence.getConstArray();
- const size_t nLen( rSequence.getLength() );
-
- return ::std::any_of( pArray,
- pArray + nLen,
+ return ::std::any_of( rSequence.begin(), rSequence.end(),
NamedValueComparator( rSearchKey ) );
}