summaryrefslogtreecommitdiff
path: root/sc/source/ui/miscdlgs/anyrefdg.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-10-22 18:58:57 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-10-23 09:30:10 +0200
commit2e363d1135ede20e2560df4eff27c080bc7e782e (patch)
tree9d5b9728020c7974adbe5e247d3c12a92dbf58c3 /sc/source/ui/miscdlgs/anyrefdg.cxx
parentd9a782be7ba158ce21ecce1fe53a7517bb6c5a28 (diff)
Remove ScToken from the formula::FormulaToken hierarchy
...to keep UBSan from complaining about illegal downcasts from FormulaToken to ScToken (which were practically harmless, given that ScToken did not add any data members). Change-Id: I8fdc026eec363442cc4b720b71d65c972b4a4446
Diffstat (limited to 'sc/source/ui/miscdlgs/anyrefdg.cxx')
-rw-r--r--sc/source/ui/miscdlgs/anyrefdg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx
index 3e182f8ad1d9..3de5d0532c12 100644
--- a/sc/source/ui/miscdlgs/anyrefdg.cxx
+++ b/sc/source/ui/miscdlgs/anyrefdg.cxx
@@ -196,7 +196,7 @@ void ScFormulaReferenceHelper::ShowFormulaReference(const OUString& rStr)
pTabViewShell->ClearHighlightRanges();
pScTokA->Reset();
- const ScToken* pToken = static_cast<const ScToken*>(pScTokA->GetNextReference());
+ const formula::FormulaToken* pToken = pScTokA->GetNextReference();
sal_uInt16 nIndex=0;
@@ -222,7 +222,7 @@ void ScFormulaReferenceHelper::ShowFormulaReference(const OUString& rStr)
pTabViewShell->AddHighlightRange(aRange, aColName);
}
- pToken = static_cast<const ScToken*>(pScTokA->GetNextReference());
+ pToken = pScTokA->GetNextReference();
}
}
}