diff options
author | Maks Naumov <maksqwe1@ukr.net> | 2015-10-25 22:01:42 +0200 |
---|---|---|
committer | Maks Naumov <maksqwe1@ukr.net> | 2015-10-26 08:23:45 +0000 |
commit | 1721c83c275a0d6aaf01622eb140c02094365142 (patch) | |
tree | 36f64f94c3bea7768880816275ec4ee69c5da9fc /src/gui/painting | |
parent | 51dac9890d9df2e2101e3519a8deaa9cbcc42d14 (diff) | |
download | qtbase-1721c83c275a0d6aaf01622eb140c02094365142.tar.gz |
QPathSegments::Intersection: reduce struct size 24 -> 16 bytes
Only for systems where qreal is double(8 bytes).
Change-Id: I3fd6b5d4279c41102ead24eef287bb37847398c1
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qpathclipper.cpp | 4 | ||||
-rw-r--r-- | src/gui/painting/qpathclipper_p.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/painting/qpathclipper.cpp b/src/gui/painting/qpathclipper.cpp index 513fdfa2b6..3a686bd209 100644 --- a/src/gui/painting/qpathclipper.cpp +++ b/src/gui/painting/qpathclipper.cpp @@ -548,11 +548,11 @@ void SegmentTree::produceIntersectionsLeaf(const TreeNode &node, int segment) for (int k = 0; k < m_intersections.size(); ++k) { QPathSegments::Intersection i_isect, j_isect; - i_isect.vertex = j_isect.vertex = m_segments.addPoint(m_intersections.at(k).pos); - i_isect.t = m_intersections.at(k).alphaA; j_isect.t = m_intersections.at(k).alphaB; + i_isect.vertex = j_isect.vertex = m_segments.addPoint(m_intersections.at(k).pos); + i_isect.next = 0; j_isect.next = 0; diff --git a/src/gui/painting/qpathclipper_p.h b/src/gui/painting/qpathclipper_p.h index 36330052dd..d1caea4a1a 100644 --- a/src/gui/painting/qpathclipper_p.h +++ b/src/gui/painting/qpathclipper_p.h @@ -156,9 +156,8 @@ class QPathSegments { public: struct Intersection { - int vertex; qreal t; - + int vertex; int next; bool operator<(const Intersection &o) const { |