summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/iframe.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/doc/iframe.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/doc/iframe.cxx')
-rw-r--r--sfx2/source/doc/iframe.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx
index 1d65791ff158..5f0837000902 100644
--- a/sfx2/source/doc/iframe.cxx
+++ b/sfx2/source/doc/iframe.cxx
@@ -187,7 +187,7 @@ sal_Bool SAL_CALL IFrameObject::load(
uno::Sequence < beans::PropertyValue > aProps(2);
aProps[0].Name = "PluginMode";
- aProps[0].Value <<= (sal_Int16) 2;
+ aProps[0].Value <<= sal_Int16(2);
aProps[1].Name = "ReadOnly";
aProps[1].Value <<= true;
uno::Reference < frame::XDispatch > xDisp = mxFrame->queryDispatch( aTargetURL, "_self", 0 );
@@ -361,12 +361,12 @@ uno::Any SAL_CALL IFrameObject::getPropertyValue(const OUString& aPropertyName)
break;
case WID_FRAME_MARGIN_WIDTH:
{
- aAny <<= (sal_Int32 ) maFrmDescr.GetMargin().Width();
+ aAny <<= static_cast<sal_Int32>(maFrmDescr.GetMargin().Width());
}
break;
case WID_FRAME_MARGIN_HEIGHT:
{
- aAny <<= (sal_Int32 ) maFrmDescr.GetMargin().Height();
+ aAny <<= static_cast<sal_Int32>(maFrmDescr.GetMargin().Height());
}
break;
default: ;