Changed QLibrary::resolve() to return a function pointer.
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>
Thu, 21 Jul 2011 16:47:26 +0000 (18:47 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 25 Jul 2011 10:58:23 +0000 (12:58 +0200)
commitb949b17c3cb7b6752bc8daf2834415163792a76c
treef4d7d0eb7c3a1a71cb12e2d5a5c6c667449c6358
parent8d762c9caea4f8b9ff589b6c23564f4e37242745
Changed QLibrary::resolve() to return a function pointer.

According to the C++ standard, there is no guarantee that
you can cast between function pointers and void pointers
without data loss (section 5.2.10-6).

Change-Id: I27f4d835e4c8ca8ecca0d76cfea9ce34491956bd
Reviewed-on: http://codereview.qt.nokia.com/1995
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
20 files changed:
dist/changes-5.0.0
src/3rdparty/harfbuzz/src/harfbuzz-external.h
src/3rdparty/harfbuzz/tests/linebreaking/harfbuzz-qt.cpp
src/corelib/global/qglobal.cpp
src/corelib/global/qglobal.h
src/corelib/plugin/qlibrary.cpp
src/corelib/plugin/qlibrary.h
src/corelib/plugin/qlibrary_p.h
src/corelib/plugin/qlibrary_unix.cpp
src/corelib/plugin/qlibrary_win.cpp
src/corelib/plugin/qsystemlibrary_p.h
src/corelib/tools/qharfbuzz.cpp
src/dbus/qdbus_symbols.cpp
src/dbus/qdbus_symbols_p.h
src/gui/kernel/qapplication_x11.cpp
src/gui/text/qrawfont_win.cpp
src/opengl/qgl_x11.cpp
src/opengl/qglpixelbuffer_x11.cpp
src/plugins/platforms/xlib/qxlibstatic.cpp
tests/auto/qlibrary/tst_qlibrary.cpp