summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-03-10 23:51:59 +0100
committerEike Rathke <erack@redhat.com>2015-03-10 23:58:15 +0100
commita408811fb5519d55c0fcf943bfc08325682e0399 (patch)
treecd2ba80a8efaf1c376cb8d5519cf66d12ded660b /sc
parent71b630e5b683b3761af9d6bdce56f13f20da84c1 (diff)
virtual ScTableRefToken::SetIndex(); of course..
Change-Id: I4a43ea664e9db2bb44e0e7f089a71abf6f572b1e
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/token.hxx1
-rw-r--r--sc/source/core/tool/token.cxx5
2 files changed, 6 insertions, 0 deletions
diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx
index 5564a200d257..a0a12abf4cd8 100644
--- a/sc/inc/token.hxx
+++ b/sc/inc/token.hxx
@@ -227,6 +227,7 @@ public:
virtual ~ScTableRefToken();
virtual sal_uInt16 GetIndex() const SAL_OVERRIDE;
+ virtual void SetIndex( sal_uInt16 n ) SAL_OVERRIDE;
virtual bool operator==( const formula::FormulaToken& rToken ) const SAL_OVERRIDE;
virtual FormulaToken* Clone() const SAL_OVERRIDE { return new ScTableRefToken(*this); }
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index 203f3783f31e..eab3f8f43560 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -851,6 +851,11 @@ sal_uInt16 ScTableRefToken::GetIndex() const
return mnIndex;
}
+void ScTableRefToken::SetIndex( sal_uInt16 n )
+{
+ mnIndex = n;
+}
+
ScTableRefToken::Item ScTableRefToken::GetItem() const
{
return meItem;