summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-12-09 12:57:28 +0900
committerDavid Tardon <dtardon@redhat.com>2015-12-09 12:33:33 +0000
commit3b0666738225ec87f6f65e54dde8078c77f1d8ad (patch)
treed4651540c1a572002e4559e85c9e8d0652022c3a /starmath
parent356109d4ead137ea22b358b20ed22a4bd09d35f6 (diff)
starmath: Pass by const reference
Change-Id: I703bedf5bcf2f2ea3b54eb0fc3a641ff246f4568 Reviewed-on: https://gerrit.libreoffice.org/20486 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/caret.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/inc/caret.hxx b/starmath/inc/caret.hxx
index bb1fc840d385..5b9076baa695 100644
--- a/starmath/inc/caret.hxx
+++ b/starmath/inc/caret.hxx
@@ -36,10 +36,10 @@ struct SmCaretPos{
int Index;
/** True, if this is a valid caret position */
bool IsValid() const { return pSelectedNode != nullptr; }
- bool operator!=(SmCaretPos pos) const {
+ bool operator!=(const SmCaretPos &pos) const {
return pos.pSelectedNode != pSelectedNode || Index != pos.Index;
}
- bool operator==(SmCaretPos pos) const {
+ bool operator==(const SmCaretPos &pos) const {
return pos.pSelectedNode == pSelectedNode && Index == pos.Index;
}
/** Get the caret position after pNode, regardless of pNode