diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-11-28 10:57:51 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-11-28 16:26:24 +0000 |
commit | ca1f842158419e49b2a010f58e347d7af3b28b93 (patch) | |
tree | e48d8b6f56c9efd364a171bf42e1ed0c2c07b149 /tests/auto/opengl | |
parent | 88d7c8f963414f4d3ac7a406faddcc074ca6462d (diff) |
QDebug: reduce template bloat
When streaming non-Q_FLAG QFlags, factor the common code
into a helper function only templated on QFlags<T>::Int
and pass what varies as parameters.
Then overload the helper function for the most common int
type (int) as an out-of-line function, implemented via the
primary template to avoid the two going out of sync.
That leaves the primary helper template only for special
cases (such as future extensions).
Change-Id: I70e0001bcfacab9f8765c9b1075fe80b596223f1
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/opengl')
0 files changed, 0 insertions, 0 deletions