summaryrefslogtreecommitdiff
path: root/stoc/source/invocation/invocation.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-01-28 16:24:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-01-29 07:11:04 +0100
commit98e60805613ab6ea19c03c34c0f36d00374dab73 (patch)
treefb8249445f7ccb3005b5942e7bb495b671033b8e /stoc/source/invocation/invocation.cxx
parent4cff06065ebfe884d8661b790db76f15203f2549 (diff)
loplugin:flatten in stoc..store
Change-Id: Ib8c86179a3d13852cbb02b389b6103aca5456dba Reviewed-on: https://gerrit.libreoffice.org/67013 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc/source/invocation/invocation.cxx')
-rw-r--r--stoc/source/invocation/invocation.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx
index 271b90651400..34c93c5cb781 100644
--- a/stoc/source/invocation/invocation.cxx
+++ b/stoc/source/invocation/invocation.cxx
@@ -947,22 +947,22 @@ void Invocation_Impl::fillInfoForMethod
rInfo.aType = aReturnType;
Sequence<ParamInfo> aParamInfos = xMethod->getParameterInfos();
sal_Int32 nParamCount = aParamInfos.getLength();
- if( nParamCount > 0 )
- {
- const ParamInfo* pInfo = aParamInfos.getConstArray();
+ if( nParamCount <= 0 )
+ return;
- rInfo.aParamTypes.realloc( nParamCount );
- Type* pParamTypes = rInfo.aParamTypes.getArray();
- rInfo.aParamModes.realloc( nParamCount );
- ParamMode* pParamModes = rInfo.aParamModes.getArray();
+ const ParamInfo* pInfo = aParamInfos.getConstArray();
- for( sal_Int32 i = 0 ; i < nParamCount ; i++ )
- {
- Reference< XIdlClass > xParamClass = pInfo[i].aType;
- Type aParamType( xParamClass->getTypeClass(), xParamClass->getName() );
- pParamTypes[ i ] = aParamType;
- pParamModes[ i ] = pInfo[i].aMode;
- }
+ rInfo.aParamTypes.realloc( nParamCount );
+ Type* pParamTypes = rInfo.aParamTypes.getArray();
+ rInfo.aParamModes.realloc( nParamCount );
+ ParamMode* pParamModes = rInfo.aParamModes.getArray();
+
+ for( sal_Int32 i = 0 ; i < nParamCount ; i++ )
+ {
+ Reference< XIdlClass > xParamClass = pInfo[i].aType;
+ Type aParamType( xParamClass->getTypeClass(), xParamClass->getName() );
+ pParamTypes[ i ] = aParamType;
+ pParamModes[ i ] = pInfo[i].aMode;
}
}