[Development] Question about the QDataBuffer from src/gui/painting

Marc Mutz marc.mutz at kdab.com
Mon Oct 26 11:20:56 CET 2015


On Monday 26 October 2015 09:41:00 Gunnar Sletta wrote:
> Also, given the purpose of this class, then using QDataBuffer as an
> on-the-stack member in a function (like in mergePoints()) will pretty much
> always be wrong. There is no point in using a pool when it is discarded
> after a single use, after all. 

Yes, QVarLengthArray would be preferable in many cases.

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts



More information about the Development mailing list