[Libreoffice-commits] core.git: cppu/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 23 19:51:33 UTC 2020
cppu/source/typelib/typelib.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 500c4a1442919715a504e90db592dcce0f31e1a5
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Apr 23 20:51:37 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Apr 23 21:50:51 2020 +0200
Related tdf#115399: Reorder code slightly
...in preparation of a forthcoming fix for the issue
Change-Id: I6611778dfbc090eb869bf653cf7f61574a81b4f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92823
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 339f470077af..acd205ad07b2 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -1497,15 +1497,15 @@ extern "C" void SAL_CALL typelib_typedescription_register(
*ppNewDescription +1,
nSize - sizeof(typelib_TypeDescription) );
- pTDR->pType->bComplete = (*ppNewDescription)->bComplete;
- pTDR->pType->nSize = (*ppNewDescription)->nSize;
- pTDR->pType->nAlignment = (*ppNewDescription)->nAlignment;
-
memset(
*ppNewDescription +1,
0,
nSize - sizeof( typelib_TypeDescription ) );
+ pTDR->pType->bComplete = (*ppNewDescription)->bComplete;
+ pTDR->pType->nSize = (*ppNewDescription)->nSize;
+ pTDR->pType->nAlignment = (*ppNewDescription)->nAlignment;
+
if( pTDR->pType->bOnDemand && !(*ppNewDescription)->bOnDemand )
{
// switch from OnDemand to !OnDemand, so the description must be acquired
More information about the Libreoffice-commits
mailing list