summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-11-09 15:58:27 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-09 16:52:48 +0100
commit9c9bbfc13c0ace717d2f569fa809d30b5b9d9efe (patch)
treeb8b279f79fd875def7fa2bacf685deff261d763d /src/corelib
parent67a9b9500929ab9de0802e2236d5e158c151029d (diff)
QVariant: Fix MSVC compiler warning about unused variable null.
Use static method isnull(). Introduced by ca26fefc0624264262a2abe630568271cefa2753. Change-Id: I752f8d8a5ec473dcc5f50fbda47d061b8d3a7e13 Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/kernel/qvariant_p.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/kernel/qvariant_p.h b/src/corelib/kernel/qvariant_p.h
index 5729c0d2d5..3c2176856d 100644
--- a/src/corelib/kernel/qvariant_p.h
+++ b/src/corelib/kernel/qvariant_p.h
@@ -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; }