summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2011-10-07 15:48:41 +0300
committerTor Lillqvist <tlillqvist@suse.com>2011-10-07 15:56:06 +0300
commitff86d3ac43e5f3150cd8e4c5e5aed583ff2fcc76 (patch)
tree2b88894242b4239649133853579ddcfcf3c9c527 /sw
parentWaE: switch statement contains 'default' but no 'case' labels (diff)
downloadcore-ff86d3ac43e5f3150cd8e4c5e5aed583ff2fcc76.tar.gz
core-ff86d3ac43e5f3150cd8e4c5e5aed583ff2fcc76.zip
WaE: reinterpret_cast used between related classes
static_cast is what we should need here, say the C++ experts.
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/index/cnttab.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index 9f0f60fa39d0..fa75af65eedc 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -3606,7 +3606,7 @@ IMPL_LINK(SwTokenWindow, NextItemHdl, SwTOXEdit*, pEdit)
Control *pCtrlFocus = *iterFocus;
pCtrlFocus->GrabFocus();
- reinterpret_cast<SwTOXButton*>(pCtrlFocus)->Check();
+ static_cast<SwTOXButton*>(pCtrlFocus)->Check();
AdjustScrolling();
}
@@ -3621,7 +3621,7 @@ IMPL_LINK(SwTokenWindow, TbxFocusHdl, SwTOXEdit*, pEdit)
Control *pCtrl = *it;
if (pCtrl && pCtrl->GetType() != WINDOW_EDIT)
- reinterpret_cast<SwTOXButton*>(pCtrl)->Check(false);
+ static_cast<SwTOXButton*>(pCtrl)->Check(false);
}
SetActiveControl(pEdit);
@@ -3652,13 +3652,13 @@ IMPL_LINK(SwTokenWindow, NextItemBtnHdl, SwTOXButton*, pBtn )
if (!isNext)
{
- sal_uInt16 nLen = reinterpret_cast<SwTOXEdit*>(pCtrlFocus)->GetText().Len();
+ sal_uInt16 nLen = static_cast<SwTOXEdit*>(pCtrlFocus)->GetText().Len();
aSel.A() = nLen;
aSel.B() = nLen;
}
- reinterpret_cast<SwTOXEdit*>(pCtrlFocus)->SetSelection(aSel);
+ static_cast<SwTOXEdit*>(pCtrlFocus)->SetSelection(aSel);
pBtn->Check(false);
@@ -3675,7 +3675,7 @@ IMPL_LINK(SwTokenWindow, TbxFocusBtnHdl, SwTOXButton*, pBtn )
Control *pControl = *it;
if (pControl && WINDOW_EDIT != pControl->GetType())
- reinterpret_cast<SwTOXButton*>(pControl)->Check(pBtn == pControl);
+ static_cast<SwTOXButton*>(pControl)->Check(pBtn == pControl);
}
SetActiveControl(pBtn);