summaryrefslogtreecommitdiff
path: root/include/formula
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 11:23:13 +0200
committerNoel Grandin <noel@peralex.com>2016-04-13 13:27:52 +0200
commit86d20ae1e5f54bb60042b085b8b8ef77f65ce17e (patch)
tree57f9b204a261ad3b936e5527acc48c4499808988 /include/formula
parente133f3eb0ff6d03a5a2df38627793b1f1aee04c6 (diff)
loplugin:passstuffbyref in formula
Change-Id: I6a46110c6d0092b21e7b3a0245ccf11ca7ccac85
Diffstat (limited to 'include/formula')
-rw-r--r--include/formula/FormulaCompiler.hxx2
-rw-r--r--include/formula/formdata.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/formula/FormulaCompiler.hxx b/include/formula/FormulaCompiler.hxx
index 2c96dee1d793..fc912fcc9bc3 100644
--- a/include/formula/FormulaCompiler.hxx
+++ b/include/formula/FormulaCompiler.hxx
@@ -207,7 +207,7 @@ public:
bool bEnglish );
/** Get current OpCodeMap in effect. */
- inline OpCodeMapPtr GetCurrentOpCodeMap() const { return mxSymbols; }
+ const OpCodeMapPtr& GetCurrentOpCodeMap() const { return mxSymbols; }
/** Get OpCode for English symbol.
Used in XFunctionAccess to create token array.
diff --git a/include/formula/formdata.hxx b/include/formula/formdata.hxx
index ecd3dd17aa4d..c531804e1e46 100644
--- a/include/formula/formdata.hxx
+++ b/include/formula/formdata.hxx
@@ -43,7 +43,7 @@ public:
inline sal_uInt16 GetEdFocus() const { return nEdFocus; }
inline const OUString& GetUndoStr() const { return aUndoStr; }
inline bool GetMatrixFlag()const{ return bMatrix;}
- inline OString GetUniqueId()const { return aUniqueId;}
+ const OString& GetUniqueId()const { return aUniqueId;}
inline const Selection& GetSelection()const { return aSelection;}
inline void SetMode( sal_uInt16 nNew ) { nMode = nNew; }