[Libreoffice-commits] core.git: starmath/inc
Takeshi Abe
tabe at fixedpoint.jp
Wed Dec 9 04:33:58 PST 2015
starmath/inc/caret.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3b0666738225ec87f6f65e54dde8078c77f1d8ad
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Wed Dec 9 12:57:28 2015 +0900
starmath: Pass by const reference
Change-Id: I703bedf5bcf2f2ea3b54eb0fc3a641ff246f4568
Reviewed-on: https://gerrit.libreoffice.org/20486
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: David Tardon <dtardon at redhat.com>
diff --git a/starmath/inc/caret.hxx b/starmath/inc/caret.hxx
index bb1fc84..5b9076b 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
More information about the Libreoffice-commits
mailing list