clang:optin.performance.Padding in cppu

Excessive padding in 'struct cppu::IdContainer' (11 padding bytes, where
3 is optimal).
Excessive padding in 'struct (anonymous namespace)::ObjectEntry' (11
padding bytes, where 3 is optimal).

Change-Id: I39216b9927abeb8ec61ab590dc25bc203a112028
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121921
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2021-09-10 19:31:37 +02:00
parent 9490588c24
commit 9f46bcac09
3 changed files with 5 additions and 5 deletions

View File

@@ -83,10 +83,10 @@ static typelib_InterfaceTypeDescription * get_type_XCurrentContext()
IdContainer::IdContainer() IdContainer::IdContainer()
: pCurrentContext(nullptr) : pCurrentContext(nullptr)
, pCurrentContextEnv(nullptr) , pCurrentContextEnv(nullptr)
, bInit(false)
, pLocalThreadId(nullptr) , pLocalThreadId(nullptr)
, nRefCountOfCurrentId(0)
, pCurrentId(nullptr) , pCurrentId(nullptr)
, nRefCountOfCurrentId(0)
, bInit(false)
{ {
} }

View File

@@ -32,10 +32,10 @@ struct IdContainer
void * pCurrentContext; void * pCurrentContext;
_uno_ExtEnvironment * pCurrentContextEnv; _uno_ExtEnvironment * pCurrentContextEnv;
bool bInit;
sal_Sequence * pLocalThreadId; sal_Sequence * pLocalThreadId;
sal_Int32 nRefCountOfCurrentId;
sal_Sequence * pCurrentId; sal_Sequence * pCurrentId;
sal_Int32 nRefCountOfCurrentId;
bool bInit;
IdContainer(); IdContainer();
~IdContainer(); ~IdContainer();

View File

@@ -75,8 +75,8 @@ struct InterfaceEntry
struct ObjectEntry struct ObjectEntry
{ {
OUString oid; OUString oid;
sal_Int32 nRef;
std::vector< InterfaceEntry > aInterfaces; std::vector< InterfaceEntry > aInterfaces;
sal_Int32 nRef;
bool mixedObject; bool mixedObject;
explicit ObjectEntry( const OUString & rOId_ ); explicit ObjectEntry( const OUString & rOId_ );