summaryrefslogtreecommitdiff
path: root/vcl/source/edit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-10 20:20:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-11 12:45:01 +0200
commit349e1a7ce141d11432dda730ab8d34ab123117c5 (patch)
tree3bb7680465533e0227b2d687c61340a53505128a /vcl/source/edit
parent952734d4214e647110b556e962b11d192c76ee0a (diff)
clang:optin.performance.Padding in vcl
Excessive padding in 'class ImplAccelEntry' (13 padding bytes, where 5 is optimal). Excessive padding in 'struct SalQueryCharPositionEvent' (14 padding bytes, where 6 is optimal). Excessive padding in 'struct SalFrameState' (8 padding bytes, where 0 is optimal). Excessive padding in 'struct BitmapBuffer' (10 padding bytes, where 2 is optimal). Excessive padding in 'class GraphicAttr' (10 padding bytes, where 2 is optimal). Excessive padding in 'struct ImplPostEventData' (12 padding bytes, where 4 is optimal). Excessive padding in 'class TETextPortion' (10 padding bytes, where 2 is optimal). Excessive padding in 'struct MapMode::ImplMapMode' (11 padding bytes, where 3 is optimal). Change-Id: I41801e0fd676981cc9f386d814fe2f0ea670a673 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121925 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/edit')
-rw-r--r--vcl/source/edit/textdat2.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/edit/textdat2.hxx b/vcl/source/edit/textdat2.hxx
index 1f9d2428d9f2..c620f91ad4e2 100644
--- a/vcl/source/edit/textdat2.hxx
+++ b/vcl/source/edit/textdat2.hxx
@@ -49,15 +49,15 @@ class TextView;
class TETextPortion
{
private:
+ tools::Long nWidth;
sal_Int32 nLen;
- tools::Long nWidth;
sal_uInt8 nKind;
bool bRightToLeft;
public:
TETextPortion( sal_Int32 nL )
- : nLen {nL}
- , nWidth {-1}
+ : nWidth {-1}
+ , nLen {nL}
, nKind {PORTIONKIND_TEXT}
, bRightToLeft {false}
{}