From aa28b54ab568fb7160095bb4a2fec338b1398b43 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 28 Nov 2017 12:38:03 +0200 Subject: Do as the FIXME suggested Not exactly, though. The FIXME said "Make this a comparison operator at the TokenArray?" but I think that would be misleading as the code in question specifically does not check the TokenArrays for being completely identical; it intentionally ignores the RPN part. So make it a member function 'EqualTokens' instead. Change-Id: I15d840c422844fa144415a76c1f8fcbd6cae3c83 Reviewed-on: https://gerrit.libreoffice.org/45404 Reviewed-by: Bartosz Kosiorek Reviewed-by: Tor Lillqvist Tested-by: Tor Lillqvist --- sc/inc/tokenarray.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sc/inc') diff --git a/sc/inc/tokenarray.hxx b/sc/inc/tokenarray.hxx index 8b352b447f09..927b77bc5ffd 100644 --- a/sc/inc/tokenarray.hxx +++ b/sc/inc/tokenarray.hxx @@ -59,6 +59,9 @@ public: (not copied!) */ ScTokenArray( const ScTokenArray& ); virtual ~ScTokenArray() override; + + bool EqualTokens( const ScTokenArray* pArr2 ) const; + virtual void Clear() override; ScTokenArray* Clone() const; /// True copy! -- cgit