diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2011-10-26 14:32:23 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-27 14:56:14 +0200 |
commit | 916460929d1de315262d4a9ee91280ecaf3f58f1 (patch) | |
tree | cf92200e93dd85bf588046772f72e0b9fb2945ad /src/tools | |
parent | 73e1a1c27cc1eaae98cc01dd4ad7ba725ea30b66 (diff) |
Move the implementation of normalizeTypeInternal()
This function is only used in src/tools/moc/moc.cpp and
src/corelib/kernel/qmetaobject.cpp. We don't need to include the
static, non-inline declaration and definition every time
qmetaobject_p.h is included.
This also silences the related warning from clang:
../../../include/QtCore/5.0.0/QtCore/private/../../../../../src/corelib/kernel/qmetaobject_p.h:171:19: error:
function 'normalizeTypeInternal' is not needed and will not be emitted
[-Werror,-Wunneeded-internal-declaration]
static QByteArray normalizeTypeInternal(const char *t, const char *e, ...
^
Change-Id: I6dfb2cb4d9d82a2ae7795f91169aa62f9a5f2c2f
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/moc/moc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/moc/moc.cpp b/src/tools/moc/moc.cpp index 9309db1c90..6374a726ac 100644 --- a/src/tools/moc/moc.cpp +++ b/src/tools/moc/moc.cpp @@ -46,7 +46,7 @@ #include "outputrevision.h" // for normalizeTypeInternal -#include <private/qmetaobject_p.h> +#include <private/qmetaobject_moc_p.h> QT_BEGIN_NAMESPACE |