summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qbytearraylist.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-08-03 02:46:00 +0200
committerOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-08-09 09:05:24 +0200
commit2431bf1b20e2815e0da3d294cce129de775b8f39 (patch)
tree88f6620ca52c95068f7dfc5a348f3c8c94c67907 /src/corelib/tools/qbytearraylist.cpp
parent184fd8aa6c61d642b99391487e11985478a2cb5b (diff)
QPixelFormat: don't inherit it
Instead of abusing inheritance to provide convenience constructors, use simple inline constructor functions. The name got a lower-case q to indicate a free function. The usual fromXYZ() static methods were deemed not fitting in this case in the initial round of review, since they implied some kind of conversion while these functions are simply constructors of formsts, which contain no data. This also solves the problem that some of these ctors could have been called with just one argument and were therefore candidates for hidden QPixelFormat temporary injection. QPixelFormatRgb was renamed to qPixelFormatRgba to explain the third argument at the call site better. There seem to be no users of this class in qt5.git at this time. Change-Id: Ib4fe8ceb2d30744127b116a748724a3406400eb8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qbytearraylist.cpp')
0 files changed, 0 insertions, 0 deletions