diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 10:11:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 12:41:09 +0000 |
commit | 5a308b1239a09417507b0d05090ff2d3418d5133 (patch) | |
tree | 990fa9015a4107e4916691eb4dee80fa5713e96b /sfx2/source/sidebar/DrawHelper.cxx | |
parent | c1a227600d0b16df283162d24f1a31f5c9cee474 (diff) |
V801: Decreased performance
Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a
Diffstat (limited to 'sfx2/source/sidebar/DrawHelper.cxx')
-rw-r--r-- | sfx2/source/sidebar/DrawHelper.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sfx2/source/sidebar/DrawHelper.cxx b/sfx2/source/sidebar/DrawHelper.cxx index 3a29a55cbc43..903f63827fa4 100644 --- a/sfx2/source/sidebar/DrawHelper.cxx +++ b/sfx2/source/sidebar/DrawHelper.cxx @@ -26,8 +26,8 @@ namespace sfx2 { namespace sidebar { void DrawHelper::DrawBorder ( OutputDevice& rDevice, - const Rectangle rBox, - const SvBorder aBorderSize, + const Rectangle& rBox, + const SvBorder& rBorderSize, const Paint& rHorizontalPaint, const Paint& rVerticalPaint) { @@ -37,31 +37,31 @@ void DrawHelper::DrawBorder ( rBox.Left(), rBox.Right(), rBox.Top(), - aBorderSize.Top(), + rBorderSize.Top(), rHorizontalPaint); // Draw bottom line. DrawHorizontalLine( rDevice, - rBox.Left()+aBorderSize.Left(), + rBox.Left()+rBorderSize.Left(), rBox.Right(), - rBox.Bottom()-aBorderSize.Bottom()+1, - aBorderSize.Bottom(), + rBox.Bottom()-rBorderSize.Bottom()+1, + rBorderSize.Bottom(), rHorizontalPaint); // Draw left line. DrawVerticalLine( rDevice, - rBox.Top()+aBorderSize.Top(), + rBox.Top()+rBorderSize.Top(), rBox.Bottom(), rBox.Left(), - aBorderSize.Left(), + rBorderSize.Left(), rVerticalPaint); // Draw right line. DrawVerticalLine( rDevice, - rBox.Top()+aBorderSize.Top(), - rBox.Bottom()-aBorderSize.Bottom(), - rBox.Right()-aBorderSize.Right()+1, - aBorderSize.Right(), + rBox.Top()+rBorderSize.Top(), + rBox.Bottom()-rBorderSize.Bottom(), + rBox.Right()-rBorderSize.Right()+1, + rBorderSize.Right(), rVerticalPaint); } |