| commit | 4ec7dee3e33cf70abdce9d9de936a9694344d402 | [log] |
|---|---|---|
| author | Noel Grandin <noel.grandin@collabora.co.uk> | Thu Apr 09 11:08:47 2020 +0200 |
| committer | Noel Grandin <noel.grandin@collabora.co.uk> | Thu Apr 09 20:20:45 2020 +0200 |
| tree | 3439ec3e8bb7f5a94173b8709565424b54514cee | |
| parent | bf88d6d02d01b85e75293579bab35155e513caea [diff] |
tdf#104878 avoid extra deque allocations for empty Primitive2DContainer Change-Id: I9815ef38928d4c93485d69c131be6f7df32daef1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91954 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/include/drawinglayer/primitive2d/Primitive2DContainer.hxx b/include/drawinglayer/primitive2d/Primitive2DContainer.hxx index 4b852f3..cca3a0a 100644 --- a/include/drawinglayer/primitive2d/Primitive2DContainer.hxx +++ b/include/drawinglayer/primitive2d/Primitive2DContainer.hxx
@@ -39,7 +39,11 @@ public Primitive2DDecompositionVisitor { public: explicit Primitive2DContainer() {} // use zero because we allocate a lot of empty containers explicit Primitive2DContainer() : deque(0) { } explicit Primitive2DContainer(size_type count) : deque(count) {