summaryrefslogtreecommitdiff
path: root/stoc/source/invocation
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:15:18 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:15:18 +0100
commitd76f636cc41df3618962aac44ef989f13d4680b8 (patch)
treec3f85dfe49409139a6ab34ae5c2950258d508b20 /stoc/source/invocation
parent0b0a6e9b4d99a647d12b25f608150bf652d3f9da (diff)
More loplugin:cstylecast: stoc
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: I2a9c00b7c0427a99597a7aead6d77d370a507da8
Diffstat (limited to 'stoc/source/invocation')
-rw-r--r--stoc/source/invocation/invocation.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx
index fa75e1dbf94b..f639e55bdee8 100644
--- a/stoc/source/invocation/invocation.cxx
+++ b/stoc/source/invocation/invocation.cxx
@@ -609,7 +609,7 @@ Any Invocation_Impl::invoke( const OUString& FunctionName, const Sequence<Any>&
throw IllegalArgumentException(
"incorrect number of parameters passed invoking function " + FunctionName +
"expected " + OUString::number(nFParamsLen) + ", got " + OUString::number(InParams.getLength()),
- static_cast<OWeakObject *>(this), (sal_Int16) 1 );
+ static_cast<OWeakObject *>(this), sal_Int16(1) );
}
// IN Parameter
@@ -655,7 +655,7 @@ Any Invocation_Impl::invoke( const OUString& FunctionName, const Sequence<Any>&
// is OUT/INOUT parameter?
if (rFParam.aMode != ParamMode_IN)
{
- pOutIndices[nOutIndex] = (sal_Int16)nPos;
+ pOutIndices[nOutIndex] = static_cast<sal_Int16>(nPos);
if (rFParam.aMode == ParamMode_OUT)
rDestType->createObject( pInvokeParams[nPos] ); // default init
++nOutIndex;