From 32f95a35514701ed16413125b440c16d90f52b4a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 4 Mar 2015 09:28:31 +0000 Subject: V813: Decreased performance Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91 --- filter/source/graphicfilter/eos2met/eos2met.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'filter/source/graphicfilter') diff --git a/filter/source/graphicfilter/eos2met/eos2met.cxx b/filter/source/graphicfilter/eos2met/eos2met.cxx index 0d21b0adc012..780ac5dcfc4d 100644 --- a/filter/source/graphicfilter/eos2met/eos2met.cxx +++ b/filter/source/graphicfilter/eos2met/eos2met.cxx @@ -211,7 +211,7 @@ private: void METLine(const tools::PolyPolygon & rPolyPolygon); void METLineAtCurPos(Point aPt); void METBox(bool bFill, bool bBoundary, - Rectangle aRect, sal_uInt32 nHAxis, sal_uInt32 nVAxis); + const Rectangle& rRect, sal_uInt32 nHAxis, sal_uInt32 nVAxis); void METFullArc(Point aCenter, double fMultiplier); void METPartialArcAtCurPos(Point aCenter, double fMultiplier, double fStartAngle, double fSweepAngle); @@ -1319,7 +1319,6 @@ void METWriter::METLine(const tools::PolyPolygon & rPolyPolygon) } } - void METWriter::METLineAtCurPos(Point aPt) { WillWriteOrder(10); @@ -1327,9 +1326,8 @@ void METWriter::METLineAtCurPos(Point aPt) WritePoint(aPt); } - void METWriter::METBox(bool bFill, bool bBoundary, - Rectangle aRect, sal_uInt32 nHAxis, sal_uInt32 nVAxis) + const Rectangle& rRect, sal_uInt32 nHAxis, sal_uInt32 nVAxis) { sal_uInt8 nFlags=0; if (bFill) nFlags|=0x40; @@ -1337,12 +1335,11 @@ void METWriter::METBox(bool bFill, bool bBoundary, WillWriteOrder(28); pMET->WriteUChar( 0xc0 ).WriteUChar( 26 ).WriteUChar( nFlags ).WriteUChar( 0 ); - WritePoint(aRect.BottomLeft()); - WritePoint(aRect.TopRight()); + WritePoint(rRect.BottomLeft()); + WritePoint(rRect.TopRight()); pMET->WriteUInt32( nHAxis ).WriteUInt32( nVAxis ); } - void METWriter::METFullArc(Point aCenter, double fMultiplier) { WillWriteOrder(14); @@ -1351,7 +1348,6 @@ void METWriter::METFullArc(Point aCenter, double fMultiplier) pMET->WriteInt32( fMultiplier*65536.0+0.5 ); } - void METWriter::METPartialArcAtCurPos(Point aCenter, double fMultiplier, double fStartAngle, double fSweepAngle) { -- cgit