summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/drwtxtsh.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-24 10:40:18 +0200
committerNoel Grandin <noel@peralex.com>2014-11-25 10:09:53 +0200
commit9409b2eb454118eab93542d4dfb464b723b219e2 (patch)
treeb143ccfb63af30b3e47637e096d03261f2586065 /sw/source/uibase/shells/drwtxtsh.cxx
parent88aaa3496161339d504876a2e84dc03e4d6191d9 (diff)
loplugin: cstylecast
Change-Id: I030208a86a60609b0379c00957538677fac15ccf
Diffstat (limited to 'sw/source/uibase/shells/drwtxtsh.cxx')
-rw-r--r--sw/source/uibase/shells/drwtxtsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx
index 3ec5c14a34b6..a3807e81996c 100644
--- a/sw/source/uibase/shells/drwtxtsh.cxx
+++ b/sw/source/uibase/shells/drwtxtsh.cxx
@@ -527,7 +527,7 @@ void SwDrawTextShell::ExecUndo(SfxRequest &rReq)
case SID_UNDO:
case SID_REDO:
if( SfxItemState::SET == pArgs->GetItemState( nId, false, &pItem ) &&
- 1 < (nCnt = ((SfxUInt16Item*)pItem)->GetValue()) )
+ 1 < (nCnt = static_cast<const SfxUInt16Item*>(pItem)->GetValue()) )
{
// then we make by ourself.
::svl::IUndoManager* pUndoManager = GetUndoManager();