Prevent a crash when there is no QTest::logger when calling warn()
commitc3e785eec23322cb2d8eb1cbb6460802ad0a4fe9
authorAndy Shaw <qt-info@nokia.com>
Mon, 10 Aug 2009 06:13:55 +0000 (10 08:13 +0200)
committerAndy Shaw <qt-info@nokia.com>
Mon, 10 Aug 2009 06:13:55 +0000 (10 08:13 +0200)
tree4e708a953d443c38ae98f691eb76538dbcf8a14a
parentb55ef69930ff9e26c13845a692fabb709f1c685f
Prevent a crash when there is no QTest::logger when calling warn()

Also, the info() function was modified to use an assert rather than an
pointer check with an if to make it consistent with the rest of the file.

Reviewed-by: jesperht
src/testlib/qtestlog.cpp