summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/annotsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/shells/annotsh.cxx')
-rw-r--r--sw/source/uibase/shells/annotsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx
index 172bd26c62cf..b746f48f4e5b 100644
--- a/sw/source/uibase/shells/annotsh.cxx
+++ b/sw/source/uibase/shells/annotsh.cxx
@@ -1455,7 +1455,7 @@ void SwAnnotationShell::ExecUndo(SfxRequest &rReq)
sal_uInt16 nCnt = 1;
const SfxPoolItem* pItem=0;
if( pArgs && SfxItemState::SET == pArgs->GetItemState( nId, false, &pItem ) )
- nCnt = ((SfxUInt16Item*)pItem)->GetValue();
+ nCnt = static_cast<const SfxUInt16Item*>(pItem)->GetValue();
switch( nId )
{
case SID_UNDO: