Kaydet (Commit) c85b1974 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Now I can remove this ugly const_cast.

Change-Id: Ifc4d0028d334bd6fa9dfdea86543b5eaf25313e0
üst 40eb44c1
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment