diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/xmlsource/xmlsourcedlg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx index 08cf7cc17349..fa85970617ca 100644 --- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx +++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx @@ -42,7 +42,7 @@ bool isAttribute(const SvTreeListEntry& rEntry) OUString getXPath(const SvTreeListBox& rTree, const SvTreeListEntry& rEntry) { OUStringBuffer aBuf; - for (SvTreeListEntry* p = const_cast<SvTreeListEntry*>(&rEntry); p; p = rTree.GetParent(p)) + for (const SvTreeListEntry* p = &rEntry; p; p = rTree.GetParent(p)) { const SvLBoxItem* pItem = p->GetFirstItem(SV_ITEM_ID_LBOXSTRING); if (!pItem) |