Remove use of 'register' from Qt.
authorKevin Funk <kfunk@kde.org>
Thu, 7 Aug 2014 15:42:16 +0000 (17:42 +0200)
committerKevin Funk <kevin.funk@kdab.com>
Mon, 11 Aug 2014 15:18:23 +0000 (17:18 +0200)
commitf5231b768e9986b9519af1a0d2eff1891adaeba2
tree6dc2744965394449f5b3f108eda8ab2bdc0efca7
parentbfa0be8a1bf68200f1ba98888deff4a9215ee066
Remove use of 'register' from Qt.

It is deprecated and clang is warning about it [-Wdeprecated-register].

Original patch from Stephen Kelly,
see commit d9fb6e6dbb2b322556d581265da2442e3b91a6a3 in qt5/qtbase

This is a backport of this commit + additional manual replacements in
header files. There are still some 'register' uses inside implementation files left,
but headers are all 'register'-free now.

Change-Id: I7225381df1f093073583d62fa86f7bd7cca869c7
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
28 files changed:
src/corelib/arch/qatomic_alpha.h
src/corelib/arch/qatomic_armv6.h
src/corelib/arch/qatomic_ia64.h
src/corelib/arch/qatomic_sh4a.h
src/corelib/io/qfilesystemwatcher_inotify.cpp
src/corelib/kernel/qcore_unix.cpp
src/corelib/kernel/qcore_unix_p.h
src/corelib/kernel/qmetatype.h
src/corelib/kernel/qsystemsemaphore_unix.cpp
src/corelib/tools/qbytearray.cpp
src/corelib/tools/qbytearraymatcher.cpp
src/corelib/tools/qlocale_tools.cpp
src/corelib/tools/qlocale_tools_p.h
src/corelib/tools/qsharedpointer_impl.h
src/corelib/tools/qstring.cpp
src/corelib/tools/qstringmatcher.cpp
src/dbus/qdbusutil.cpp
src/gui/image/qbmphandler.cpp
src/gui/image/qimage.cpp
src/gui/image/qppmhandler.cpp
src/gui/image/qxbmhandler.cpp
src/gui/painting/qdrawhelper.cpp
src/gui/painting/qdrawhelper_p.h
src/gui/painting/qpolygon.cpp
src/gui/painting/qregion.cpp
src/network/access/qnetworkcookie_p.h
src/network/socket/qnet_unix_p.h
src/plugins/imageformats/ico/qicohandler.cpp