diff options
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/polygon/b2dpolygonclipper.cxx | 2 | ||||
-rw-r--r-- | basegfx/source/polygon/b2dpolygontriangulator.cxx | 4 | ||||
-rw-r--r-- | basegfx/source/polygon/b2dtrapezoid.cxx | 2 | ||||
-rw-r--r-- | basegfx/source/range/b2drangeclipper.cxx | 34 |
4 files changed, 21 insertions, 21 deletions
diff --git a/basegfx/source/polygon/b2dpolygonclipper.cxx b/basegfx/source/polygon/b2dpolygonclipper.cxx index 76b9bf7610fa..63d3ac8c2210 100644 --- a/basegfx/source/polygon/b2dpolygonclipper.cxx +++ b/basegfx/source/polygon/b2dpolygonclipper.cxx @@ -555,7 +555,7 @@ namespace basegfx sal_uInt32 scissorLineSegment( ::basegfx::B2DPoint *in_vertex, // input buffer sal_uInt32 in_count, // number of verts in input buffer ::basegfx::B2DPoint *out_vertex, // output buffer - scissor_plane *pPlane, // scissoring plane + scissor_plane const *pPlane, // scissoring plane const ::basegfx::B2DRectangle &rR ) // clipping rectangle { diff --git a/basegfx/source/polygon/b2dpolygontriangulator.cxx b/basegfx/source/polygon/b2dpolygontriangulator.cxx index 11ed7514c838..c446bea22a6c 100644 --- a/basegfx/source/polygon/b2dpolygontriangulator.cxx +++ b/basegfx/source/polygon/b2dpolygontriangulator.cxx @@ -114,7 +114,7 @@ namespace basegfx B2DPolygon maResult; void handleClosingEdge(const B2DPoint& rStart, const B2DPoint& rEnd); - bool CheckPointInTriangle(EdgeEntry* pEdgeA, EdgeEntry* pEdgeB, const B2DPoint& rTestPoint); + bool CheckPointInTriangle(EdgeEntry* pEdgeA, EdgeEntry const * pEdgeB, const B2DPoint& rTestPoint); void createTriangle(const B2DPoint& rA, const B2DPoint& rB, const B2DPoint& rC); public: @@ -178,7 +178,7 @@ namespace basegfx } } - bool Triangulator::CheckPointInTriangle(EdgeEntry* pEdgeA, EdgeEntry* pEdgeB, const B2DPoint& rTestPoint) + bool Triangulator::CheckPointInTriangle(EdgeEntry* pEdgeA, EdgeEntry const * pEdgeB, const B2DPoint& rTestPoint) { // inside triangle or on edge? if(tools::isPointInTriangle(pEdgeA->getStart(), pEdgeA->getEnd(), pEdgeB->getEnd(), rTestPoint, true)) diff --git a/basegfx/source/polygon/b2dtrapezoid.cxx b/basegfx/source/polygon/b2dtrapezoid.cxx index e60bc1fb1ce8..c92a64a3a903 100644 --- a/basegfx/source/polygon/b2dtrapezoid.cxx +++ b/basegfx/source/polygon/b2dtrapezoid.cxx @@ -235,7 +235,7 @@ namespace basegfx } /// This is a very uncommon case but why not ... - void freeIfLast(B2DPoint *pPoint) + void freeIfLast(B2DPoint const *pPoint) { // just re-use the last point if we can. if ( nCurPoint > 0 && pPoint == mpPointBase + nCurPoint - 1 ) diff --git a/basegfx/source/range/b2drangeclipper.cxx b/basegfx/source/range/b2drangeclipper.cxx index 936e31823283..c4b8d83a1b71 100644 --- a/basegfx/source/range/b2drangeclipper.cxx +++ b/basegfx/source/range/b2drangeclipper.cxx @@ -278,11 +278,11 @@ namespace basegfx processing must proceed with, when going through the list of upcoming active edges). */ - std::ptrdiff_t intersect( SweepLineEvent& rEvent, - ActiveEdge& rActiveEdge, - VectorOfPolygons& rPolygonPool, - B2DPolyPolygon& rRes, - bool isFinishingEdge ) + std::ptrdiff_t intersect( SweepLineEvent const & rEvent, + ActiveEdge& rActiveEdge, + VectorOfPolygons& rPolygonPool, + B2DPolyPolygon& rRes, + bool isFinishingEdge ) { OSL_PRECOND( !mbIsFinished, "ImplPolygon::intersect(): called on already finished polygon!" ); @@ -338,8 +338,8 @@ namespace basegfx } private: - void handleInitialOwnEdge(SweepLineEvent& rEvent, - ActiveEdge& rActiveEdge) + void handleInitialOwnEdge(SweepLineEvent const & rEvent, + ActiveEdge& rActiveEdge) { const bool isActiveEdgeProceedLeft( rActiveEdge.getEdgeDirection() == ActiveEdge::PROCEED_LEFT); @@ -363,9 +363,9 @@ namespace basegfx mpLeadingRightEdge = &rActiveEdge; } - void handleFinalOwnLeftEdge(ActiveEdge& rActiveEdge, - VectorOfPolygons& rPolygonPool, - B2DPolyPolygon& rRes) + void handleFinalOwnLeftEdge(ActiveEdge const & rActiveEdge, + VectorOfPolygons& rPolygonPool, + B2DPolyPolygon& rRes) { OSL_ENSURE( rActiveEdge.getEdgeDirection() == ActiveEdge::PROCEED_LEFT, "ImplPolygon::handleFinalOwnLeftEdge(): end edge wrong polygon order" ); @@ -465,8 +465,8 @@ namespace basegfx } /// True when sweep line hits our own active edge - static bool metOwnEdge(const SweepLineEvent& rEvent, - ActiveEdge& rActiveEdge) + static bool metOwnEdge(SweepLineEvent const & rEvent, + ActiveEdge const & rActiveEdge) { const bool bHitOwnEdge=&rEvent.getRect() == &rActiveEdge.getRect(); return bHitOwnEdge; @@ -604,9 +604,9 @@ namespace basegfx @param rCurrEvent The actual event that caused this call */ - void createActiveEdgesFromStartEvent( ListOfEdges& io_rEdgeList, - VectorOfPolygons& io_rPolygonPool, - SweepLineEvent& rCurrEvent ) + void createActiveEdgesFromStartEvent( ListOfEdges & io_rEdgeList, + VectorOfPolygons & io_rPolygonPool, + SweepLineEvent const & rCurrEvent ) { ListOfEdges aNewEdges; const B2DRectangle& rRect=rCurrEvent.getRect(); @@ -686,8 +686,8 @@ namespace basegfx aNewEdges ); } - inline bool isSameRect(ActiveEdge& rEdge, - const basegfx::B2DRange& rRect) + inline bool isSameRect(ActiveEdge const & rEdge, + basegfx::B2DRange const & rRect) { return &rEdge.getRect() == &rRect; } |