[Qt-interest] Huge memory consumption

jjDaNiMoTh jjdanimoth at gmail.com
Wed Jul 7 15:33:22 CEST 2010


2010/7/7  <Oliver.Knoll at comit.ch>:
[cut]
> void destroy(TheData *theData) {
>  if (theData != 0) {
>    delete theData;
>  }
> }

http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.8

So, it can be rewrited in:

void destroy (TheData *p) {
   delete p;
}




More information about the Qt-interest-old mailing list