[Libreoffice-commits] core.git: extensions/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Thu Nov 26 16:35:35 UTC 2020


 extensions/source/ole/oleobjw.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 3dec53d3d6bf65843d2bd3ec5781a0a2bffb0457
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Nov 26 15:55:51 2020 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Nov 26 17:34:50 2020 +0100

    TYPEATTR::cFuncs,cVars are of type WORD
    
    Change-Id: I9a597e7373aef64891e3323d20ba51cb12f897fe
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106699
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/extensions/source/ole/oleobjw.cxx b/extensions/source/ole/oleobjw.cxx
index 532794f3992d..3985f51bc015 100644
--- a/extensions/source/ole/oleobjw.cxx
+++ b/extensions/source/ole/oleobjw.cxx
@@ -2383,7 +2383,7 @@ void IUnknownWrapper::buildComTlbIndex()
                 TypeAttr typeAttr(pType);
                 if( SUCCEEDED( pType->GetTypeAttr( &typeAttr)))
                 {
-                    for( long i= 0; i < typeAttr->cFuncs; i++)
+                    for( WORD i= 0; i < typeAttr->cFuncs; i++)
                     {
                         FuncDesc funcDesc(pType);
                         if( SUCCEEDED( pType->GetFuncDesc( i, &funcDesc)))
@@ -2408,7 +2408,7 @@ void IUnknownWrapper::buildComTlbIndex()
 
                     //If we create an Object in JScript and a property then it
                     //has VARDESC instead of FUNCDESC
-                    for (long i = 0; i < typeAttr->cVars; i++)
+                    for (WORD i = 0; i < typeAttr->cVars; i++)
                     {
                         VarDesc varDesc(pType);
                         if (SUCCEEDED(pType->GetVarDesc(i, & varDesc)))


More information about the Libreoffice-commits mailing list