summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-11-28 12:38:03 +0200
committerTor Lillqvist <tml@collabora.com>2017-11-28 23:55:48 +0100
commitaa28b54ab568fb7160095bb4a2fec338b1398b43 (patch)
tree63629ba22675ad34159a77b9d4831cef29bd5749 /sc/inc
parent217b1e8e94859e06af66023f042c53cf329f5232 (diff)
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 <gang65@poczta.onet.pl> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/tokenarray.hxx3
1 files changed, 3 insertions, 0 deletions
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!