From f96313d16163ce66c2fa04c99fa25b7c6da1c5b1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 15 Jun 2015 18:34:00 +0200 Subject: Fix previous commit Change-Id: I56b5212595f7750965a7620498fb063422f2eae0 --- include/formula/tokenarray.hxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'include/formula') diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx index 991621d302d0..1050047af137 100644 --- a/include/formula/tokenarray.hxx +++ b/include/formula/tokenarray.hxx @@ -123,6 +123,14 @@ protected: /// Also used by the compiler. The token MUST had been allocated with new! FormulaToken* Add( FormulaToken* ); +public: + enum ReplaceMode + { + BACKWARD_CODE_ONLY, ///< offset goes backward, replacement only in pCode + FORWARD_CODE_AND_RPN ///< offset goes forward, replacement in pCode and RPN + }; + +protected: /** Also used by the compiler. The token MUST had been allocated with new! @param nOffset If eMode==BACKWARD_CODE_ONLY negative offset of token, 0==last, @@ -150,12 +158,6 @@ protected: { nMode = GetCombinedBitsRecalcMode() | nBits; } public: - enum ReplaceMode - { - BACKWARD_CODE_ONLY, ///< offset goes backward, replacement only in pCode - FORWARD_CODE_AND_RPN ///< offset goes forward, replacement in pCode and RPN - }; - FormulaTokenArray(); /// Assignment with references to FormulaToken entries (not copied!) FormulaTokenArray( const FormulaTokenArray& ); -- cgit