summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-09-17 21:02:44 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-09-17 21:50:38 +0200
commite39fa3c4f5ae2560a4b6f6f789a0c5098ac43cf4 (patch)
tree3056c35fb06b2bc0f4ee7607801fa5a7f7df3320 /include
parentf295ab96fea5ac71592ea9b92610db9d441d1bd5 (diff)
Simplify b2d(poly)polygon implementation
Most size checks should be only done in the outer object; implementations inside cow_wrapper only assert correctness. All const_cast and as_const are replaced with correct const method calls (and, where needed, mutable members). Change-Id: I69e9f72086d07257ebd5cefaff7f214e198b901e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140106 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/basegfx/polygon/b2dpolygon.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/basegfx/polygon/b2dpolygon.hxx b/include/basegfx/polygon/b2dpolygon.hxx
index c5a862773507..0af041fe366a 100644
--- a/include/basegfx/polygon/b2dpolygon.hxx
+++ b/include/basegfx/polygon/b2dpolygon.hxx
@@ -36,6 +36,7 @@ namespace basegfx
class B2DRange;
class B2DHomMatrix;
class B2DCubicBezier;
+ class B2DVector;
class SystemDependentData;
class SystemDependentDataManager;
typedef std::shared_ptr<SystemDependentData> SystemDependentData_SharedPtr;
@@ -253,6 +254,8 @@ namespace basegfx
private:
void addOrReplaceSystemDependentDataInternal(SystemDependentData_SharedPtr& rData) const;
SystemDependentData_SharedPtr getSystemDependantDataInternal(size_t hash_code) const;
+ const basegfx::B2DVector& getPrevControlVector(sal_uInt32 nIndex) const;
+ const basegfx::B2DVector& getNextControlVector(sal_uInt32 nIndex) const;
};
// typedef for a vector of B2DPolygons