summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-11-15 19:28:23 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-11-28 13:28:30 -0500
commitc85b1974be6f1bf96be1cc9a94c75dab99c1eb9e (patch)
treecc46ad52e567a555fe7c489148cc04ef4bd46bfe /sc
parent40eb44c1cdce10bd4bdc7e1a8da08591a5178b75 (diff)
Now I can remove this ugly const_cast.
Change-Id: Ifc4d0028d334bd6fa9dfdea86543b5eaf25313e0
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/xmlsource/xmlsourcedlg.cxx2
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)