Fix check_for_unused_event_handlers option.

The format string given to the reporter warning call wasn't printing
the handler names.  Also changed it so that each warning message has
the full context of the warning.
This commit is contained in:
Jon Siwek 2011-08-11 11:34:42 -05:00
parent 59e5fc5633
commit 521f54c4f0
3 changed files with 10 additions and 2 deletions

View file

@ -931,9 +931,8 @@ int main(int argc, char** argv)
if ( dead_handlers->length() > 0 && check_for_unused_event_handlers )
{
reporter->Warning("event handlers never invoked:");
for ( int i = 0; i < dead_handlers->length(); ++i )
reporter->Warning("\t", (*dead_handlers)[i]);
reporter->Warning("event handler never invoked: %s", (*dead_handlers)[i]);
}
delete dead_handlers;