Was reviewing some code in a project, and found a file where a developer had inserted the following in every single method:
class EventMapper {
public:
/*
* constructor
*/
EventMapper() {
if( !this ) return;
/* --SNIP--*/
}
/*
* destructor
*/
~EventMapper() {
if( !this ) return;
/* --SNIP-- */
}
/*
* initialises the event mapper
*/
void initialise() {
if( !this ) return;
/* --SNIP-- */
}