summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-09-14 01:05:19 +0200
committerMarc Mutz <marc.mutz@kdab.com>2015-11-03 16:34:01 +0000
commitc5239ec12d6aca0aa081ea61a3adad715d45d65c (patch)
treecc4bbb0556532fe29dfffa52506df151ef1c1068 /src/widgets/doc/snippets
parent8e43f25edd8546b30cab5ae9884107b36445a86f (diff)
QCalendarWidget: hold SectionToken by-value
There really is no point in allocating a struct containing a pointer and an int on the heap. Allocate by-value instead. Since QList would be inefficient then, switch to QVector. A pointer to the current token was replaced by its index. That saves looking it up on every toPreviousToken()/ toNextToken(). This saves 816 bytes of text size on optimized AMD64 / GCC builds, even though QVector expands to more code than QList. Change-Id: I030ee3f6acabe76168a518495bd4462711519e54 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/widgets/doc/snippets')
0 files changed, 0 insertions, 0 deletions