danmar/cppcheck — pull request #245 by simartin (2014-03-01 15:34:11+00:00)
Title: Ticket #5478: Only functions and equal operators might return a temporary

Hi,

This patch fixes the ticket by ensuring everything that's not a function or equal operator is skipped when checking if a temporary is returned. Without this, the code crashes dereferencing a 0 function->retDef. Thanks to consider pulling.

Cheers,
Simon