From ab9b38a4064141705aa3a3de9a5d73b465ad3af3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 5 Jul 2017 13:27:30 +0200 Subject: use more begin()/end() for Sequence Change-Id: I399be6b6ef7a6ce01e883569a177c0969bc29c69 --- sfx2/source/doc/sfxbasemodel.cxx | 4 ++-- sfx2/source/doc/sfxmodelfactory.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sfx2/source/doc') diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index faba052f4ec2..cefd4db1cb70 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -546,8 +546,8 @@ namespace { Sequence< uno::Type > aStrippedTypes( io_rTypes.getLength() - 1 ); ::std::remove_copy_if( - io_rTypes.getConstArray(), - io_rTypes.getConstArray() + io_rTypes.getLength(), + io_rTypes.begin(), + io_rTypes.end(), aStrippedTypes.getArray(), [&i_rTypeToStrip](const uno::Type& aType) { return aType == i_rTypeToStrip; } ); diff --git a/sfx2/source/doc/sfxmodelfactory.cxx b/sfx2/source/doc/sfxmodelfactory.cxx index c50034e8ab7a..564a5dc3e0c3 100644 --- a/sfx2/source/doc/sfxmodelfactory.cxx +++ b/sfx2/source/doc/sfxmodelfactory.cxx @@ -158,8 +158,8 @@ namespace sfx2 Sequence< Any > aStrippedArguments( _rArguments.getLength() ); Any* pStrippedArgs = aStrippedArguments.getArray(); Any* pStrippedArgsEnd = ::std::remove_copy_if( - _rArguments.getConstArray(), - _rArguments.getConstArray() + _rArguments.getLength(), + _rArguments.begin(), + _rArguments.end(), pStrippedArgs, IsSpecialArgument() ); -- cgit