diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-02 12:03:27 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:39 +0200 |
commit | 5d2c125d90a8865df9a96a267ed83686597e3336 (patch) | |
tree | 743f5683fa57043d2c88932f3a0a84e12acfdaaf /codemaker | |
parent | 3a1f8d5f41b6b1f6d3f40405338210f235c2ac87 (diff) |
cppcheck scope reduction in codemake/... cpputype.cxx
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/cppumaker/cpputype.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index 51a01f6d8059..5b87cc095483 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -1924,7 +1924,6 @@ void InterfaceType::dumpCppuMethods(FileStream& o, sal_uInt32& index) { sal_uInt16 methodCount = m_reader.getMethodCount(); OString methodName, returnType, paramType, paramName; - sal_uInt16 paramCount = 0; RTMethodMode methodMode = RT_MODE_INVALID; RTParamMode paramMode = RT_PARAM_INVALID; sal_Bool bWithRuntimeException = sal_True; @@ -1936,6 +1935,7 @@ void InterfaceType::dumpCppuMethods(FileStream& o, sal_uInt32& index) o << "\n" << indent() << "typelib_InterfaceMethodTypeDescription * pMethod = 0;\n"; OString scope = m_typeName.replace('/', '.'); + sal_uInt16 paramCount = 0; for (sal_uInt16 i=0; i < methodCount; i++) { methodMode = m_reader.getMethodFlags(i); @@ -1966,8 +1966,7 @@ void InterfaceType::dumpCppuMethods(FileStream& o, sal_uInt32& index) o << indent() << "typelib_Parameter_Init aParameters[" << paramCount << "];\n"; } - sal_uInt16 j; - for (j=0; j < paramCount; j++) + for (sal_uInt16 j = 0; j < paramCount; j++) { paramName = rtl::OUStringToOString( m_reader.getMethodParameterName(i, j), |