drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 42628f13f5228224d83b5a6ab949228e6926cf1b Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sun May 29 11:29:45 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun May 29 12:53:18 2022 +0200 use std::vector in AnimatedGraphicPrimitive2D instead of Primitive2DContainer, because I want to change Primitive2DContainer into a different data structure that does not support cheap random access Change-Id: I1bc55f2e21d9d5c4529c87be57a46aee63e04589 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135087 Tested-by: Noel Grandin <noel.gran...@collabora.co.uk> Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx index 9974117b5ae0..7f27fa782ff8 100644 --- a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx +++ b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx @@ -74,7 +74,7 @@ namespace drawinglayer::primitive2d Primitive2DReference maBufferedFirstFrame; /// buffering of all frames - Primitive2DContainer maBufferedPrimitives; + std::vector<Primitive2DReference> maBufferedPrimitives; bool mbBufferingAllowed; /// set if the animation is huge so that just always the next frame @@ -402,7 +402,7 @@ namespace drawinglayer::primitive2d // prepare buffer space if (mbBufferingAllowed && isValidData()) { - maBufferedPrimitives = Primitive2DContainer(maAnimation.Count()); + maBufferedPrimitives.resize(maAnimation.Count()); } }