QVariant: Fix MSVC compiler warning about unused variable null.

Use static method isnull().
Introduced by ca26fefc06.

Change-Id: I752f8d8a5ec473dcc5f50fbda47d061b8d3a7e13
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
bb10
Friedemann Kleint 2011-11-09 15:58:27 +01:00 committed by Qt by Nokia
parent 67a9b95009
commit 9c9bbfc13c
1 changed files with 1 additions and 2 deletions

View File

@ -282,8 +282,7 @@ public:
template<typename T>
bool delegate(const T*)
{
CallIsNull<T> null;
return null.isNull(m_d);
return CallIsNull<T>::isNull(m_d);
}
// we need that as sizof(void) is undefined and it is needed in HasIsNullMethod
bool delegate(const void *) { return m_d->is_null; }