From f1bd6e802a1671c4b923124b33064b7803a5dbb6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 12 Sep 2021 10:52:59 +0200 Subject: clang:optin.performance.Padding Excessive padding in 'struct chart::TickInfo' (11 padding bytes, where 3 is optimal). Excessive padding in 'class EscherBlibEntry' (10 padding bytes, where 2 is optimal). Excessive padding in 'struct oox::drawingml::ConditionAttr' (8 padding bytes, where 0 is optimal). Excessive padding in 'struct oox::drawingml::Constraint' (12 padding bytes, where 4 is optimal). Excessive padding in 'struct (anonymous namespace)::Number' (10 padding bytes, where 2 is optimal). Change-Id: If7573afa8a794497c9a2bf1c7c15e8f11ff11407 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121993 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/view/axes/Tickmarks.cxx | 2 +- chart2/source/view/axes/Tickmarks.hxx | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'chart2/source/view') diff --git a/chart2/source/view/axes/Tickmarks.cxx b/chart2/source/view/axes/Tickmarks.cxx index 73c8e041cf40..80476934e7f2 100644 --- a/chart2/source/view/axes/Tickmarks.cxx +++ b/chart2/source/view/axes/Tickmarks.cxx @@ -34,8 +34,8 @@ TickInfo::TickInfo( const uno::Reference& xInverse ) : fScaledTickValue( 0.0 ) , xInverseScaling( xInverse ) , aTickScreenPosition(0.0,0.0) -, bPaintIt( true ) , nFactorForLimitedTextWidth(1) +, bPaintIt( true ) { } diff --git a/chart2/source/view/axes/Tickmarks.hxx b/chart2/source/view/axes/Tickmarks.hxx index 77b9a2b85bdc..54ae03922e4d 100644 --- a/chart2/source/view/axes/Tickmarks.hxx +++ b/chart2/source/view/axes/Tickmarks.hxx @@ -35,14 +35,11 @@ struct TickInfo { double fScaledTickValue; css::uno::Reference xInverseScaling; - - ::basegfx::B2DVector aTickScreenPosition; - bool bPaintIt; - css::uno::Reference xTextShape; - OUString aText;//used only for complex categories so far + ::basegfx::B2DVector aTickScreenPosition; sal_Int32 nFactorForLimitedTextWidth;//categories in higher levels of complex categories can have more place than a single simple category + bool bPaintIt; //methods: TickInfo() = delete; -- cgit v1.2.3