From 7392e1326d4d2512576aa61c677068a560620bb8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 3 Jun 2017 21:14:39 +0200 Subject: Improved loplugin:cstylecast to reference types: cppuhelper Change-Id: Id442b7a76072fb346d927a7dd8659a05bb491f9b --- cppuhelper/source/interfacecontainer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cppuhelper/source/interfacecontainer.cxx b/cppuhelper/source/interfacecontainer.cxx index 2eb7197bf9e6..75ae965bf813 100644 --- a/cppuhelper/source/interfacecontainer.cxx +++ b/cppuhelper/source/interfacecontainer.cxx @@ -45,7 +45,7 @@ static void sequenceRemoveElementAt( Sequence< Reference< XInterface > > & rSeq, Sequence< Reference< XInterface > > aDestSeq( rSeq.getLength() - 1 ); // getArray on a const sequence is faster - const Reference< XInterface > * pSource = ((const Sequence< Reference< XInterface > > &)rSeq).getConstArray(); + const Reference< XInterface > * pSource = rSeq.getConstArray(); Reference< XInterface > * pDest = aDestSeq.getArray(); sal_Int32 i = 0; for( ; i < index; i++ ) -- cgit