From 58d8d8ac67aa9b907f1304a48efa0f7a473d9de4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 10 Dec 2015 12:27:50 +0200 Subject: tdf#69977: uno::Sequence is expensive when used as a mutable data-structure. Plain std::vector halves the time taken to display the chart dialog Create a class to represent the std::vector we are going to be passing around, and move some of the utility methods into it to make the code prettier. Also create an optimised append(&&) method for the common case of appending small temporaries. Change-Id: I7f5b43fb4a8a84e40e6a52fcb7e9f974091b4485 --- include/svx/charthelper.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/svx/charthelper.hxx') diff --git a/include/svx/charthelper.hxx b/include/svx/charthelper.hxx index 766bebac34c5..4a868e0515e0 100644 --- a/include/svx/charthelper.hxx +++ b/include/svx/charthelper.hxx @@ -41,7 +41,7 @@ public: // as sequence of primitives. Return range of primitives (chart size) in rRange; // it will be used to embed the chart to the SdrObject transformation. This // allows to define possible distances between chart and SDrObject bounds here - static drawinglayer::primitive2d::Primitive2DSequence tryToGetChartContentAsPrimitive2DSequence( + static drawinglayer::primitive2d::Primitive2DContainer tryToGetChartContentAsPrimitive2DSequence( const css::uno::Reference< css::frame::XModel >& rXModel, basegfx::B2DRange& rRange); -- cgit