summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qmetatypeswitcher_p.h
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>2012-02-13 13:06:40 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-23 15:07:58 +0100
commit60c6ed0e042fa18d76d4961d394b8f99226e9892 (patch)
tree7df5004c7cf1411caeee448b10e752c63cd2ddb4 /src/corelib/kernel/qmetatypeswitcher_p.h
parent729a73dfada8269c698e83a9bbd91a62dab77737 (diff)
Rename QMetaTypeSwitcher::UnknownType to NotBuiltinType.
UnknownType suggest that a type is unknown to QMetaType, but QMetaTypeSwitcher is not checking for custom types. Change-Id: I6b8b692e0f20bed286c713672b35fb15757d389e Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/kernel/qmetatypeswitcher_p.h')
-rw-r--r--src/corelib/kernel/qmetatypeswitcher_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qmetatypeswitcher_p.h b/src/corelib/kernel/qmetatypeswitcher_p.h
index c1cccfca63..05db2cb4c7 100644
--- a/src/corelib/kernel/qmetatypeswitcher_p.h
+++ b/src/corelib/kernel/qmetatypeswitcher_p.h
@@ -60,7 +60,7 @@ QT_BEGIN_NAMESPACE
class QMetaTypeSwitcher {
public:
- typedef void *UnknownType;
+ typedef void *NotBuiltinType;
template<class ReturnType, class DelegateObject>
static ReturnType switcher(DelegateObject &logic, int type, const void *data);
};
@@ -91,7 +91,7 @@ ReturnType QMetaTypeSwitcher::switcher(DelegateObject &logic, int type, const vo
QT_FOR_EACH_STATIC_WIDGETS_CLASS(QT_METATYPE_SWICHER_CASE_QCLASS)
default:
- return logic.delegate(static_cast<const UnknownType *>(data));
+ return logic.delegate(static_cast<const NotBuiltinType *>(data));
}
}