[Development] Deprecation of qMalloc/qFree/qRealloc

s.cunz at asim.de s.cunz at asim.de
Wed Dec 21 17:16:24 CET 2011


On Wednesday 21 December 2011 07:26:42 Robin Burchell wrote:
> Hi,
> 
> I've submitted two changes last night:
> - http://codereview.qt-project.org/#change,11562 - deprecating
> qMalloc/qFree/qRealloc
> - http://codereview.qt-project.org/#change,11563 - removing all uses
> of them from QtBase
> 
> My justification for this change is pretty simple - the only real
> reason to have these as far as I know is that it makes it possible to
> swap out memory allocation across Qt, but, there are usually other
> ways to accomplish this as the commit message notes, and it's rather
> unfair to impose an additional function call on all uses of these for
> something which isn't used in the majority of cases.

Am i mistaken here? I was under the impression, that qMalloc / qFree / qRealloc
exist to keep public headers free from the need to include some system headers.

SaCu

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
______________________________________________________________________



More information about the Development mailing list