summaryrefslogtreecommitdiffstats
path: root/cppu/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-10 19:31:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-10 21:19:48 +0200
commit9f46bcac09c7f1f8ef6f22ed9f366d1fd596f9d7 (patch)
tree7070c01e64a32524721b9014684debdfbae44ade /cppu/source
parentclang:optin.performance.Padding in tools (diff)
downloadcore-9f46bcac09c7f1f8ef6f22ed9f366d1fd596f9d7.tar.gz
core-9f46bcac09c7f1f8ef6f22ed9f366d1fd596f9d7.zip
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>
Diffstat (limited to 'cppu/source')
-rw-r--r--cppu/source/threadpool/current.cxx4
-rw-r--r--cppu/source/threadpool/current.hxx4
-rw-r--r--cppu/source/uno/lbenv.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/cppu/source/threadpool/current.cxx b/cppu/source/threadpool/current.cxx
index 6a992c6af541..d085cb4a5092 100644
--- a/cppu/source/threadpool/current.cxx
+++ b/cppu/source/threadpool/current.cxx
@@ -83,10 +83,10 @@ static typelib_InterfaceTypeDescription * get_type_XCurrentContext()
IdContainer::IdContainer()
: pCurrentContext(nullptr)
, pCurrentContextEnv(nullptr)
- , bInit(false)
, pLocalThreadId(nullptr)
- , nRefCountOfCurrentId(0)
, pCurrentId(nullptr)
+ , nRefCountOfCurrentId(0)
+ , bInit(false)
{
}
diff --git a/cppu/source/threadpool/current.hxx b/cppu/source/threadpool/current.hxx
index cb0094413d66..1f6ce6642738 100644
--- a/cppu/source/threadpool/current.hxx
+++ b/cppu/source/threadpool/current.hxx
@@ -32,10 +32,10 @@ struct IdContainer
void * pCurrentContext;
_uno_ExtEnvironment * pCurrentContextEnv;
- bool bInit;
sal_Sequence * pLocalThreadId;
- sal_Int32 nRefCountOfCurrentId;
sal_Sequence * pCurrentId;
+ sal_Int32 nRefCountOfCurrentId;
+ bool bInit;
IdContainer();
~IdContainer();
diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx
index f018cde00cfd..c9a2d89933d5 100644
--- a/cppu/source/uno/lbenv.cxx
+++ b/cppu/source/uno/lbenv.cxx
@@ -75,8 +75,8 @@ struct InterfaceEntry
struct ObjectEntry
{
OUString oid;
- sal_Int32 nRef;
std::vector< InterfaceEntry > aInterfaces;
+ sal_Int32 nRef;
bool mixedObject;
explicit ObjectEntry( const OUString & rOId_ );