From 3b0666738225ec87f6f65e54dde8078c77f1d8ad Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Wed, 9 Dec 2015 12:57:28 +0900 Subject: starmath: Pass by const reference Change-Id: I703bedf5bcf2f2ea3b54eb0fc3a641ff246f4568 Reviewed-on: https://gerrit.libreoffice.org/20486 Tested-by: Jenkins Reviewed-by: David Tardon --- starmath/inc/caret.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'starmath') 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 -- cgit ia/zeta-7-4'>distro/allotropia/zeta-7-4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2017-01-28tdf#86214 User isn't warned entering a cell address not allowedAbhilash Singh
2017-01-13new loplugin: useuniqueptr: sc part 1Noel Grandin
2016-09-23convert formula error codes to scoped enumNoel Grandin
2016-08-29loplugin:countusersofdefaultparamsNoel Grandin
2016-07-26Resolves: tdf#87474 handle renaming of named expressions/ranges in formulasEike Rathke
2016-04-30introduce ScRangeName::CopyUsedNames()Eike Rathke
2016-04-14loplugin:passstuffbyref in scNoel Grandin
2016-03-22tdf#84938 replace #define with scoped typed_flagsJochen Nitschke
2016-03-19adjust sheet references when copying sheet-local named expressionsEike Rathke
2016-03-03loplugin:unuseddefaultparams in sc (part2)Noel Grandin
2016-01-15loplugin:unusedmethods unused return value in scNoel Grandin
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-11-06sc: replace boost::ptr_map with std::map<std::unique_ptr>Michael Stahl
2015-11-02sc: remove unused boost::ptr_map ScRangeName::TabNameMapMichael Stahl
2015-08-19sc: these are ptr_map not ptr_setMichael Stahl
2015-07-22loplugin:unusedmethods scripting,scNoel Grandin
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
2014-05-11fix-includes.pl: scThomas Arnhold
2014-04-19fixincludeguards.sh: scThomas Arnhold
2014-02-04Cover all the other "compile all formula cells" methods.Kohei Yoshida
2013-11-04We need to update sheet positions of range names when modifying sheets.Kohei Yoshida
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist
2013-10-04convert sc/inc/r*.hxx from String to OUStringNoel Grandin
2013-09-04Remove more unused methodsMarcos Paulo de Souza