summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-02 11:27:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-02 14:21:52 +0000
commit95493cd49f4a80624220c2be6a787b7531f60b8e (patch)
tree38c255cda167a2d0c20cc5a9d21f915b6af3fe23 /starmath
parentab86a53623c9bf5d3abc7149aa85d0e0c8d7fd98 (diff)
V813: Decreased performance
Change-Id: I6a988077a3a2e2adf33a2c00a84b929e8133133f
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/visitors.hxx2
-rw-r--r--starmath/source/visitors.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/starmath/inc/visitors.hxx b/starmath/inc/visitors.hxx
index cdb6595b38f5..5ae12773d673 100644
--- a/starmath/inc/visitors.hxx
+++ b/starmath/inc/visitors.hxx
@@ -397,7 +397,7 @@ private:
/** The current area that is selected */
Rectangle aSelectionArea;
/** Extend the area that must be selected */
- void ExtendSelectionArea( Rectangle aArea );
+ void ExtendSelectionArea(const Rectangle& rArea);
/** Default visiting method */
void DefaultVisit( SmNode* pNode ) SAL_OVERRIDE;
/** Visit the children of a given pNode */
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx
index 40e36671e244..ed1cf979c90e 100644
--- a/starmath/source/visitors.cxx
+++ b/starmath/source/visitors.cxx
@@ -1900,13 +1900,13 @@ SmSelectionDrawingVisitor::SmSelectionDrawingVisitor( OutputDevice& rDevice, SmN
}
}
-void SmSelectionDrawingVisitor::ExtendSelectionArea( Rectangle aArea )
+void SmSelectionDrawingVisitor::ExtendSelectionArea(const Rectangle& rArea)
{
if ( ! bHasSelectionArea ) {
- aSelectionArea = aArea;
+ aSelectionArea = rArea;
bHasSelectionArea = true;
} else
- aSelectionArea.Union( aArea );
+ aSelectionArea.Union(rArea);
}
void SmSelectionDrawingVisitor::DefaultVisit( SmNode* pNode )