diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-06-16 17:08:17 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-06-19 12:23:23 +0300 |
commit | cfd5d203e9c641c150f92c2b1ee5b84e89e6dc99 (patch) | |
tree | b04b5d388665647a1309f97f10ba1d591c6715af /include | |
parent | 896dbaee45ca0dd2d4127a4b27455e8e8509d9c7 (diff) |
Drop another friend declaration
Change-Id: I06dd3639e4110700e070f1224112a9fa6597a832
Diffstat (limited to 'include')
-rw-r--r-- | include/formula/tokenarray.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx index 7be78298af39..2014994e03fc 100644 --- a/include/formula/tokenarray.hxx +++ b/include/formula/tokenarray.hxx @@ -114,9 +114,6 @@ typedef std::unordered_set<OpCode, std::hash<std::underlying_type<OpCode>::type> class FORMULA_DLLPUBLIC FormulaTokenArray { - friend class FormulaTokenIterator; - friend class FormulaTokenArrayPlainIterator; - protected: FormulaToken** pCode; // Token code array FormulaToken** pRPN; // RPN array @@ -431,8 +428,6 @@ inline std::basic_ostream<charT, traits> & operator <<(std::basic_ostream<charT, class FORMULA_DLLPUBLIC FormulaTokenArrayPlainIterator { - friend class FormulaCompiler; - private: const FormulaTokenArray* mpFTA; sal_uInt16 mnIndex; // Current step index @@ -465,6 +460,12 @@ public: mnIndex = nIndex; } + void StepBack() + { + assert(mnIndex > 0); + mnIndex--; + } + FormulaToken* Next(); FormulaToken* NextNoSpaces(); FormulaToken* GetNextName(); @@ -486,7 +487,7 @@ public: FormulaToken* LastRPN() { - mnIndex = mpFTA->nRPN; + mnIndex = mpFTA->GetCodeLen(); return PrevRPN(); } |