summaryrefslogtreecommitdiff
path: root/sfx2/source/view/sfxbasecontroller.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:16:14 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:16:14 +0100
commit48db069fd7341ad8128d0e9a5fbcc5b092fe9860 (patch)
tree1e7e14069f35086928b11f48c0a67dedec8730bc /sfx2/source/view/sfxbasecontroller.cxx
parent5e7e3c3bd7bd10a9f7216d4d9fa8f2c61bf2db3e (diff)
More loplugin:cstylecast: sfx2
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: Ia3bed56999f3d684f706ce0bd5be8a2269b06d22
Diffstat (limited to 'sfx2/source/view/sfxbasecontroller.cxx')
-rw-r--r--sfx2/source/view/sfxbasecontroller.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx
index 145caa12f666..827ec6237081 100644
--- a/sfx2/source/view/sfxbasecontroller.cxx
+++ b/sfx2/source/view/sfxbasecontroller.cxx
@@ -173,7 +173,7 @@ sal_Int16 MapGroupIDToCommandGroup( SfxGroupId nGroupID )
sal_uInt32 Get10ThSec()
{
- sal_uInt32 n10Ticks = 10 * (sal_uInt32)clock();
+ sal_uInt32 n10Ticks = 10 * static_cast<sal_uInt32>(clock());
return n10Ticks / CLOCKS_PER_SEC;
}
@@ -777,7 +777,7 @@ Reference< frame::XDispatch > SAL_CALL SfxBaseController::queryDispatch( const
}
else if ( aURL.Protocol == "slot:" )
{
- sal_uInt16 nId = (sal_uInt16) aURL.Path.toInt32();
+ sal_uInt16 nId = static_cast<sal_uInt16>(aURL.Path.toInt32());
pAct = m_pData->m_pViewShell->GetViewFrame() ;
if (nId >= SID_VERB_START && nId <= SID_VERB_END)