summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-04-09 18:03:09 +0200
committerEike Rathke <erack@redhat.com>2015-04-09 18:19:02 +0200
commitd6398719abecfca60db37637490e602222992dc2 (patch)
tree5ec533cc8830086b7e6b7eb3a696523691049688 /sc/inc
parent3335b46d123053b1228b94207a32bab08cf9d4e3 (diff)
TableRef: correct GetToken() logic
Ensure that only desired tokens are obtained and the resulting new token is actually the current one upon return. Change-Id: I624c324b861d8658accf3285cad2cfc5a598b450
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/compiler.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx
index 3154d57e6386..03baa2983504 100644
--- a/sc/inc/compiler.hxx
+++ b/sc/inc/compiler.hxx
@@ -386,6 +386,9 @@ public:
bool IsTableRefItem( const OUString& ) const;
bool IsTableRefColumn( const OUString& ) const;
+ /** Calls GetToken() if PeekNextNoSpaces() is of given OpCode. */
+ bool GetTokenIfOpCode( OpCode eOp );
+
/**
* When auto correction is set, the jump command reorder must be enabled.
*/