Coding style: remove redundant braces, break long line
Task-number: QTBUG-94407 Pick-to: 6.2 Change-Id: Id9bbc3871bc3350fa5cc656f4248de8e6511ff05 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
d093ec8d03
commit
9625c744a9
@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
**
|
**
|
||||||
** Copyright (C) 2016 The Qt Company Ltd.
|
** Copyright (C) 2021 The Qt Company Ltd.
|
||||||
** Copyright (C) 2018 Intel Corporation.
|
** Copyright (C) 2018 Intel Corporation.
|
||||||
** Copyright (C) 2014 Olivier Goffart <ogoffart@woboq.com>
|
** Copyright (C) 2014 Olivier Goffart <ogoffart@woboq.com>
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
@ -1203,7 +1203,10 @@ template <typename T>
|
|||||||
int qRegisterNormalizedMetaType(const QT_PREPEND_NAMESPACE(QByteArray) &normalizedTypeName)
|
int qRegisterNormalizedMetaType(const QT_PREPEND_NAMESPACE(QByteArray) &normalizedTypeName)
|
||||||
{
|
{
|
||||||
#ifndef QT_NO_QOBJECT
|
#ifndef QT_NO_QOBJECT
|
||||||
Q_ASSERT_X(normalizedTypeName == QMetaObject::normalizedType(normalizedTypeName.constData()), "qRegisterNormalizedMetaType", "qRegisterNormalizedMetaType was called with a not normalized type name, please call qRegisterMetaType instead.");
|
Q_ASSERT_X(normalizedTypeName == QMetaObject::normalizedType(normalizedTypeName.constData()),
|
||||||
|
"qRegisterNormalizedMetaType",
|
||||||
|
"qRegisterNormalizedMetaType was called with a not normalized type name, "
|
||||||
|
"please call qRegisterMetaType instead.");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const QMetaType metaType = QMetaType::fromType<T>();
|
const QMetaType metaType = QMetaType::fromType<T>();
|
||||||
@ -1216,9 +1219,8 @@ int qRegisterNormalizedMetaType(const QT_PREPEND_NAMESPACE(QByteArray) &normaliz
|
|||||||
QtPrivate::MetaTypePairHelper<T>::registerConverter();
|
QtPrivate::MetaTypePairHelper<T>::registerConverter();
|
||||||
QtPrivate::MetaTypeSmartPointerHelper<T>::registerConverter();
|
QtPrivate::MetaTypeSmartPointerHelper<T>::registerConverter();
|
||||||
|
|
||||||
if (normalizedTypeName != metaType.name()) {
|
if (normalizedTypeName != metaType.name())
|
||||||
QMetaType::registerNormalizedTypedef(normalizedTypeName, metaType);
|
QMetaType::registerNormalizedTypedef(normalizedTypeName, metaType);
|
||||||
}
|
|
||||||
|
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user