Fix a typo TypeDefiniton -> TypeDefinition.

If you repeat a typo often enough, it becomes the right spelling.
But 49 times is definitely not enough :-)

Change-Id: I7c0bb29e68e4bff5c67277f9874df8b3ab8b2b54
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
This commit is contained in:
Jędrzej Nowacki 2012-02-03 13:46:24 +01:00 committed by Qt by Nokia
parent 4916510b01
commit 1175ec444f
3 changed files with 49 additions and 49 deletions

View File

@ -79,40 +79,40 @@ QT_BEGIN_NAMESPACE
namespace { namespace {
template<typename T> template<typename T>
struct TypeDefiniton { struct TypeDefinition {
static const bool IsAvailable = true; static const bool IsAvailable = true;
}; };
struct DefinedTypesFilter { struct DefinedTypesFilter {
template<typename T> template<typename T>
struct Acceptor { struct Acceptor {
static const bool IsAccepted = TypeDefiniton<T>::IsAvailable && QTypeModuleInfo<T>::IsCore; static const bool IsAccepted = TypeDefinition<T>::IsAvailable && QTypeModuleInfo<T>::IsCore;
}; };
}; };
// Ignore these types, as incomplete // Ignore these types, as incomplete
#ifdef QT_NO_GEOM_VARIANT #ifdef QT_NO_GEOM_VARIANT
template<> struct TypeDefiniton<QRect> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QRect> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QRectF> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QRectF> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QSize> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QSize> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QSizeF> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QSizeF> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QLine> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QLine> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QLineF> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QLineF> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QPoint> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QPoint> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QPointF> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QPointF> { static const bool IsAvailable = false; };
#endif #endif
#ifdef QT_BOOTSTRAPPED #ifdef QT_BOOTSTRAPPED
template<> struct TypeDefiniton<QVariantMap> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QVariantMap> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QVariantHash> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QVariantHash> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QVariantList> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QVariantList> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QVariant> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QVariant> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QBitArray> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QBitArray> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QUrl> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QUrl> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QEasingCurve> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QEasingCurve> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QModelIndex> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QModelIndex> { static const bool IsAvailable = false; };
#endif #endif
#ifdef QT_NO_REGEXP #ifdef QT_NO_REGEXP
template<> struct TypeDefiniton<QRegExp> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QRegExp> { static const bool IsAvailable = false; };
#endif #endif
} // namespace } // namespace

View File

@ -98,33 +98,33 @@ public:
namespace { namespace {
template<typename T> template<typename T>
struct TypeDefiniton { struct TypeDefinition {
static const bool IsAvailable = true; static const bool IsAvailable = true;
}; };
// Ignore these types, as incomplete // Ignore these types, as incomplete
#ifdef QT_BOOTSTRAPPED #ifdef QT_BOOTSTRAPPED
template<> struct TypeDefiniton<QEasingCurve> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QEasingCurve> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QModelIndex> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QModelIndex> { static const bool IsAvailable = false; };
#endif #endif
#ifdef QT_NO_GEOM_VARIANT #ifdef QT_NO_GEOM_VARIANT
template<> struct TypeDefiniton<QRect> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QRect> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QRectF> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QRectF> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QSize> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QSize> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QSizeF> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QSizeF> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QLine> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QLine> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QLineF> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QLineF> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QPoint> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QPoint> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QPointF> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QPointF> { static const bool IsAvailable = false; };
#endif #endif
struct CoreTypesFilter { struct CoreTypesFilter {
template<typename T> template<typename T>
struct Acceptor { struct Acceptor {
static const bool IsAccepted = QTypeModuleInfo<T>::IsCore && TypeDefiniton<T>::IsAvailable; static const bool IsAccepted = QTypeModuleInfo<T>::IsCore && TypeDefinition<T>::IsAvailable;
}; };
}; };
} // annonymous used to hide TypeDefiniton } // annonymous used to hide TypeDefinition
namespace { // annonymous used to hide QVariant handlers namespace { // annonymous used to hide QVariant handlers

View File

@ -99,46 +99,46 @@ Q_CORE_EXPORT const QVariant::Handler *qcoreVariantHandler();
namespace { namespace {
template<typename T> template<typename T>
struct TypeDefiniton { struct TypeDefinition {
static const bool IsAvailable = true; static const bool IsAvailable = true;
}; };
// Ignore these types, as incomplete // Ignore these types, as incomplete
#ifdef QT_NO_GEOM_VARIANT #ifdef QT_NO_GEOM_VARIANT
template<> struct TypeDefiniton<QRect> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QRect> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QRectF> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QRectF> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QSize> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QSize> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QSizeF> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QSizeF> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QLine> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QLine> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QLineF> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QLineF> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QPoint> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QPoint> { static const bool IsAvailable = false; };
template<> struct TypeDefiniton<QPointF> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QPointF> { static const bool IsAvailable = false; };
#endif #endif
#ifdef QT_NO_SHORTCUT #ifdef QT_NO_SHORTCUT
template<> struct TypeDefiniton<QKeySequence> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QKeySequence> { static const bool IsAvailable = false; };
#endif #endif
#ifdef QT_NO_CURSOR #ifdef QT_NO_CURSOR
template<> struct TypeDefiniton<QCursor> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QCursor> { static const bool IsAvailable = false; };
#endif #endif
#ifdef QT_NO_MATRIX4X4 #ifdef QT_NO_MATRIX4X4
template<> struct TypeDefiniton<QMatrix4x4> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QMatrix4x4> { static const bool IsAvailable = false; };
#endif #endif
#ifdef QT_NO_VECTOR2D #ifdef QT_NO_VECTOR2D
template<> struct TypeDefiniton<QVector2D> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QVector2D> { static const bool IsAvailable = false; };
#endif #endif
#ifdef QT_NO_VECTOR3D #ifdef QT_NO_VECTOR3D
template<> struct TypeDefiniton<QVector3D> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QVector3D> { static const bool IsAvailable = false; };
#endif #endif
#ifdef QT_NO_VECTOR4D #ifdef QT_NO_VECTOR4D
template<> struct TypeDefiniton<QVector4D> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QVector4D> { static const bool IsAvailable = false; };
#endif #endif
#ifdef QT_NO_QUATERNION #ifdef QT_NO_QUATERNION
template<> struct TypeDefiniton<QQuaternion> { static const bool IsAvailable = false; }; template<> struct TypeDefinition<QQuaternion> { static const bool IsAvailable = false; };
#endif #endif
struct GuiTypesFilter { struct GuiTypesFilter {
template<typename T> template<typename T>
struct Acceptor { struct Acceptor {
static const bool IsAccepted = QTypeModuleInfo<T>::IsGui && TypeDefiniton<T>::IsAvailable; static const bool IsAccepted = QTypeModuleInfo<T>::IsGui && TypeDefinition<T>::IsAvailable;
}; };
}; };
} // namespace used to hide TypeDefinition } // namespace used to hide TypeDefinition