Remove wrong assert from QMetaType.
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>
Fri, 6 Jan 2012 11:17:30 +0000 (12:17 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 10 Jan 2012 00:27:04 +0000 (01:27 +0100)
commitae9afa6b9ebcdbaef5e0fea5091aab1a667fa3ac
treef5e3e66bce75f13eef882823e82cb8a1282a43f5
parent64a735eed688e4dbf52aa3caf4caea53c4c211ec
Remove wrong assert from QMetaType.

We can't assert that QMetaType helper arrays are initialized. In rare
situations it may happen that QMetaType compiled without support for an
external type (without compiled Gui or Widgets libraries) will be asked
for additional information for the type.

For example (assuming Qt is compiled with --no-gui):
// typeId it may be received over network (QMetaType::QImage)
void *ptr = QMetaType::create(typeId);

Change-Id: I018a59b23def35c7574e7c921019b5db4f06e800
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/corelib/kernel/qmetatype.cpp