summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-09-04 20:19:32 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-09-05 20:21:18 +0000
commitd3035126aa8d35130a12263d052c3360a1e57cc5 (patch)
tree8eea051c5cc6c7be3a4055f2d62491ad23d4ae0a /starmath
parent9ee01c424e37f7cd76d2edf38e9bc5f6e988d18d (diff)
starmath: Pass offset by const ref
Change-Id: Ideb32c7c5d43ff8d1ed9882c4c2654bec5239267 Reviewed-on: https://gerrit.libreoffice.org/28664 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/visitors.hxx2
-rw-r--r--starmath/source/visitors.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/starmath/inc/visitors.hxx b/starmath/inc/visitors.hxx
index a80a6f6ad03b..3a1a0c0a6bb9 100644
--- a/starmath/inc/visitors.hxx
+++ b/starmath/inc/visitors.hxx
@@ -390,7 +390,7 @@ class SmSelectionDrawingVisitor : public SmDefaultingVisitor
{
public:
/** Draws a selection on rDevice for the selection on pTree */
- SmSelectionDrawingVisitor( OutputDevice& rDevice, SmNode* pTree, Point Offset );
+ SmSelectionDrawingVisitor( OutputDevice& rDevice, SmNode* pTree, const Point& rOffset );
virtual ~SmSelectionDrawingVisitor() {}
void Visit( SmTextNode* pNode ) override;
using SmDefaultingVisitor::Visit;
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx
index 19a244f921fb..ecedac18d126 100644
--- a/starmath/source/visitors.cxx
+++ b/starmath/source/visitors.cxx
@@ -1901,7 +1901,7 @@ void SmCloningVisitor::Visit( SmVerticalBraceNode* pNode )
// SmSelectionDrawingVisitor
-SmSelectionDrawingVisitor::SmSelectionDrawingVisitor( OutputDevice& rDevice, SmNode* pTree, Point Offset )
+SmSelectionDrawingVisitor::SmSelectionDrawingVisitor( OutputDevice& rDevice, SmNode* pTree, const Point& rOffset )
: rDev( rDevice ) {
bHasSelectionArea = false;
@@ -1912,7 +1912,7 @@ SmSelectionDrawingVisitor::SmSelectionDrawingVisitor( OutputDevice& rDevice, SmN
//Draw selection if there's any
if( bHasSelectionArea ){
- aSelectionArea.Move( Offset.X( ), Offset.Y( ) );
+ aSelectionArea.Move( rOffset.X( ), rOffset.Y( ) );
//Save device state
rDev.Push( PushFlags::LINECOLOR | PushFlags::FILLCOLOR );