summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-02-07 16:15:34 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-02-07 19:27:29 +0100
commit105ebb9c0adcf421b0b89600216aa18041c179e3 (patch)
tree7e5c5b0d057c9495ac9f5dc85eb852ab1586d45c /writerfilter/source/rtftok
parent6158c9a899db83e04c78a1c949418434a89d4fdc (diff)
Use std::initializer_list ctor
Change-Id: Ib04460fe7bd33cb9b6c4fef4fc285e93c71e57c3
Diffstat (limited to 'writerfilter/source/rtftok')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index b937b5d3f9cb..73287ce5d151 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -4628,8 +4628,10 @@ RTFError RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
rDrawingObject.nPolyLineCount--;
if (rDrawingObject.nPolyLineCount == 0)
{
- uno::Sequence< uno::Sequence<awt::Point> >aPointSequenceSequence(1);
- aPointSequenceSequence[0] = comphelper::containerToSequence(rDrawingObject.aPolyLinePoints);
+ uno::Sequence< uno::Sequence<awt::Point> >aPointSequenceSequence =
+ {
+ comphelper::containerToSequence(rDrawingObject.aPolyLinePoints)
+ };
rDrawingObject.xPropertySet->setPropertyValue("PolyPolygon", uno::Any(aPointSequenceSequence));
}
}