summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-01 09:30:40 +0200
committerNoel Grandin <noel@peralex.com>2016-09-01 11:05:21 +0200
commitbb932b34f19bf8297549b9741b7cdcfe691ca374 (patch)
tree8f74dd74d4dfdccaf17af30f602222430c71c06d /sd
parent18e638ef6fa55d045f874d38574f30d8152094e4 (diff)
std::list<sal_Int16> to vector
Change-Id: I3b8b902108d632ea992018ca023984bf1366e804
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index e328453757c9..1b958ad52a0b 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -1678,7 +1678,7 @@ void CustomAnimationPane::onChangeCurrentPage()
}
}
-bool getTextSelection( const Any& rSelection, Reference< XShape >& xShape, std::list< sal_Int16 >& rParaList )
+bool getTextSelection( const Any& rSelection, Reference< XShape >& xShape, std::vector< sal_Int16 >& rParaList )
{
Reference< XTextRange > xSelectedText;
rSelection >>= xSelectedText;
@@ -1812,13 +1812,13 @@ void CustomAnimationPane::onAdd()
else if ( maViewSelection.getValueType() == cppu::UnoType<XTextCursor>::get())
{
Reference< XShape > xShape;
- std::list< sal_Int16 > aParaList;
+ std::vector< sal_Int16 > aParaList;
if( getTextSelection( maViewSelection, xShape, aParaList ) )
{
ParagraphTarget aParaTarget;
aParaTarget.Shape = xShape;
- std::list< sal_Int16 >::iterator aIter( aParaList.begin() );
+ std::vector< sal_Int16 >::iterator aIter( aParaList.begin() );
for( ; aIter != aParaList.end(); ++aIter )
{
aParaTarget.Paragraph = (*aIter);