Fix Q_ASSERT usage in case -force-asserts is enabled
authorEckhart Koppen <eckhart.koppen@nokia.com>
Wed, 16 Nov 2011 07:47:45 +0000 (09:47 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 16 Nov 2011 08:08:07 +0000 (09:08 +0100)
commitf109f5b8a9c7e6939dfd6c6f72a3b67548f5483c
tree0f40dc245f835efa9e21f256fdb816edb52bdfd6
parent18affc8c0aa5180e9538713bbe9d415c3b08f7b7
Fix Q_ASSERT usage in case -force-asserts is enabled

Certain Q_ASSERT usages are not compiling with -force-asserts since they
are checking for instance variables or other items which are not
available in release mode.

This fix guards the asserts to only be enabled in debug mode.

Change-Id: I2ed74e3d5118608361e8c924e93d8ff0efdc8eab
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/gui/text/qtextdocument_p.cpp
src/widgets/itemviews/qheaderview.cpp