Fix minor coding style issues in new code in QtCore
Change-Id: I444daf8e81257f55746f9d32fbcb60a2e1b69444 Reviewed-by: Liang Qi <liang.qi@digia.com> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
802e50c86b
commit
49dc7d2b8c
@ -127,8 +127,7 @@ QPpsAttribute QPpsAttributePrivate::createPpsAttribute(const QPpsAttributeMap &v
|
||||
//
|
||||
///////////////////////////
|
||||
|
||||
QPpsAttribute::QPpsAttribute():
|
||||
d(new QPpsAttributePrivate())
|
||||
QPpsAttribute::QPpsAttribute() : d(new QPpsAttributePrivate())
|
||||
{
|
||||
}
|
||||
|
||||
@ -136,7 +135,7 @@ QPpsAttribute::~QPpsAttribute()
|
||||
{
|
||||
}
|
||||
|
||||
QPpsAttribute::QPpsAttribute(const QPpsAttribute &other): d(other.d)
|
||||
QPpsAttribute::QPpsAttribute(const QPpsAttribute &other) : d(other.d)
|
||||
{
|
||||
}
|
||||
|
||||
@ -147,7 +146,7 @@ QPpsAttribute &QPpsAttribute::operator=(const QPpsAttribute &other)
|
||||
}
|
||||
|
||||
#ifdef Q_COMPILER_RVALUE_REFS
|
||||
QPpsAttribute::QPpsAttribute(QPpsAttribute &&other): d(other.d)
|
||||
QPpsAttribute::QPpsAttribute(QPpsAttribute &&other) : d(other.d)
|
||||
{
|
||||
other.d->type = QPpsAttribute::None;
|
||||
}
|
||||
|
@ -94,12 +94,12 @@ Q_GLOBAL_STATIC(QPpsMaxSize, ppsMaxSize)
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
QPpsObjectPrivate::QPpsObjectPrivate(const QString &path) :
|
||||
notifier(0),
|
||||
path(path),
|
||||
error(EOK),
|
||||
fd(-1),
|
||||
readyReadEnabled(true)
|
||||
QPpsObjectPrivate::QPpsObjectPrivate(const QString &path)
|
||||
: notifier(0),
|
||||
path(path),
|
||||
error(EOK),
|
||||
fd(-1),
|
||||
readyReadEnabled(true)
|
||||
{
|
||||
}
|
||||
|
||||
@ -490,9 +490,9 @@ void QPpsObjectPrivate::encodeObject(pps_encoder_t *encoder, const QVariantMap &
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
QPpsObject::QPpsObject(const QString &path, QObject *parent) :
|
||||
QObject(parent),
|
||||
d_ptr(new QPpsObjectPrivate(path))
|
||||
QPpsObject::QPpsObject(const QString &path, QObject *parent)
|
||||
: QObject(parent),
|
||||
d_ptr(new QPpsObjectPrivate(path))
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -353,7 +353,8 @@ public:
|
||||
inline Direction direction() const { return QChar::direction(ucs); }
|
||||
inline JoiningType joiningType() const { return QChar::joiningType(ucs); }
|
||||
#if QT_DEPRECATED_SINCE(5, 3)
|
||||
QT_DEPRECATED inline Joining joining() const {
|
||||
QT_DEPRECATED inline Joining joining() const
|
||||
{
|
||||
switch (QChar::joiningType(ucs)) {
|
||||
case QChar::Joining_Causing: return QChar::Center;
|
||||
case QChar::Joining_Dual: return QChar::Dual;
|
||||
|
@ -949,7 +949,8 @@ public:
|
||||
QChar::Direction direction() const { return QChar(*this).direction(); }
|
||||
QChar::JoiningType joiningType() const { return QChar(*this).joiningType(); }
|
||||
#if QT_DEPRECATED_SINCE(5, 3)
|
||||
QT_DEPRECATED QChar::Joining joining() const {
|
||||
QT_DEPRECATED QChar::Joining joining() const
|
||||
{
|
||||
switch (QChar(*this).joiningType()) {
|
||||
case QChar::Joining_Causing: return QChar::Center;
|
||||
case QChar::Joining_Dual: return QChar::Dual;
|
||||
|
Loading…
Reference in New Issue
Block a user