summaryrefslogtreecommitdiff
path: root/stoc/source/invocation/invocation.cxx
diff options
context:
space:
mode:
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;
}
}