summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogl2
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2021-11-22 18:11:10 +0100
committerMarc Mutz <marc.mutz@qt.io>2021-12-09 23:12:12 +0000
commitf917b0d4b9784e554852d65b48216e0c2fe426bd (patch)
tree43c9f1e019ed6c39be66628c1492c02d57b7297c /examples/opengl/hellogl2
parent2e07d045ff617173dbbb1382b67f7afe30564699 (diff)
QVLA: separate control from inline storage [1/N]: Extract Base Classes
In this first patch of the series, we move the fields (a, s, ptr) and (array) into each their base class, separating concerns: The QVLABase class is independent of Prealloc, while the QVLAStorage class is independent of T (only depends on Prealloc, alignof(T) and sizeof(T), and that can probably be reduced even further in later patches, since we ought to need only alignof(T) and sizeof(T) * Prealloc, and alignment can be substituted with std::max_align_t). Doing so while keeping all member functions on QVLA, however, means we need to sprinkle 'this->' in front of every data member access. C'est la vie. Task-number: QTBUG-84785 Change-Id: Iafbf97f41b9743b6dc2bfc13f3486d73e854b7cf Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'examples/opengl/hellogl2')
0 files changed, 0 insertions, 0 deletions