summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-02-18 11:27:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-02-18 15:26:48 +0100
commit6930a89190f063f574381c7c166aa44f001424fe (patch)
tree0bcc4af3eca20ac5f368dce2fa48f1d4434d412e
parent6ba818779d3eeca144ae3278788fa51ccd7d1298 (diff)
reorder to reduce size from 64 to 48 bytes
ofz#13164 1.200G -> 1.195G Change-Id: I3738b7635a7927f1f88021e5bf00dcc5509e6ea3 Reviewed-on: https://gerrit.libreoffice.org/67960 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--include/vcl/lineinfo.hxx9
-rw-r--r--vcl/source/gdi/lineinfo.cxx20
2 files changed, 15 insertions, 14 deletions
diff --git a/include/vcl/lineinfo.hxx b/include/vcl/lineinfo.hxx
index 4ed486d55452..73b5376abbf8 100644
--- a/include/vcl/lineinfo.hxx
+++ b/include/vcl/lineinfo.hxx
@@ -32,18 +32,19 @@ namespace basegfx { class B2DPolyPolygon; }
struct ImplLineInfo
{
- LineStyle meStyle;
long mnWidth;
- sal_uInt16 mnDashCount;
long mnDashLen;
- sal_uInt16 mnDotCount;
long mnDotLen;
long mnDistance;
basegfx::B2DLineJoin meLineJoin;
css::drawing::LineCap meLineCap;
+ LineStyle meStyle;
+
+ sal_uInt16 mnDashCount;
+ sal_uInt16 mnDotCount;
- ImplLineInfo();
+ ImplLineInfo();
bool operator==( const ImplLineInfo& ) const;
};
diff --git a/vcl/source/gdi/lineinfo.cxx b/vcl/source/gdi/lineinfo.cxx
index d7104171646a..85c54eefbf5a 100644
--- a/vcl/source/gdi/lineinfo.cxx
+++ b/vcl/source/gdi/lineinfo.cxx
@@ -26,16 +26,16 @@
#include <numeric>
-ImplLineInfo::ImplLineInfo() :
- meStyle ( LineStyle::Solid ),
- mnWidth ( 0 ),
- mnDashCount ( 0 ),
- mnDashLen ( 0 ),
- mnDotCount ( 0 ),
- mnDotLen ( 0 ),
- mnDistance ( 0 ),
- meLineJoin ( basegfx::B2DLineJoin::Round ),
- meLineCap ( css::drawing::LineCap_BUTT )
+ImplLineInfo::ImplLineInfo()
+ : mnWidth(0)
+ , mnDashLen(0)
+ , mnDotLen(0)
+ , mnDistance(0)
+ , meLineJoin(basegfx::B2DLineJoin::Round)
+ , meLineCap(css::drawing::LineCap_BUTT)
+ , meStyle(LineStyle::Solid)
+ , mnDashCount(0)
+ , mnDotCount(0)
{
}