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; }