forked from qt-creator/qt-creator
qmljs: Use C++11’s override and remove virtual where applicable
Fixes warning: prefer using 'override' or (rarely) 'final' instead of 'virtual' [modernize-use-override] Change-Id: I17955fd0fdb052678228f1bda32cd8d3b4298998 Reviewed-by: Marco Benelli <marco.benelli@qt.io>
This commit is contained in:
@@ -103,27 +103,27 @@ public:
|
||||
|
||||
const Value *value() const { return m_value; }
|
||||
|
||||
virtual bool processProperty(const QString &name, const Value *value, const PropertyInfo &)
|
||||
bool processProperty(const QString &name, const Value *value, const PropertyInfo &) override
|
||||
{
|
||||
return process(name, value);
|
||||
}
|
||||
|
||||
virtual bool processEnumerator(const QString &name, const Value *value)
|
||||
bool processEnumerator(const QString &name, const Value *value) override
|
||||
{
|
||||
return process(name, value);
|
||||
}
|
||||
|
||||
virtual bool processSignal(const QString &name, const Value *value)
|
||||
bool processSignal(const QString &name, const Value *value) override
|
||||
{
|
||||
return process(name, value);
|
||||
}
|
||||
|
||||
virtual bool processSlot(const QString &name, const Value *value)
|
||||
bool processSlot(const QString &name, const Value *value) override
|
||||
{
|
||||
return process(name, value);
|
||||
}
|
||||
|
||||
virtual bool processGeneratedSlot(const QString &name, const Value *value)
|
||||
bool processGeneratedSlot(const QString &name, const Value *value) override
|
||||
{
|
||||
return process(name, value);
|
||||
}
|
||||
@@ -2574,31 +2574,31 @@ class MemberDumper: public MemberProcessor
|
||||
public:
|
||||
MemberDumper() {}
|
||||
|
||||
virtual bool processProperty(const QString &name, const Value *, const PropertyInfo &pInfo)
|
||||
bool processProperty(const QString &name, const Value *, const PropertyInfo &pInfo) override
|
||||
{
|
||||
qCDebug(qmljsLog) << "property: " << name << " flags:" << pInfo.toString();
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool processEnumerator(const QString &name, const Value *)
|
||||
bool processEnumerator(const QString &name, const Value *) override
|
||||
{
|
||||
qCDebug(qmljsLog) << "enumerator: " << name;
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool processSignal(const QString &name, const Value *)
|
||||
bool processSignal(const QString &name, const Value *) override
|
||||
{
|
||||
qCDebug(qmljsLog) << "signal: " << name;
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool processSlot(const QString &name, const Value *)
|
||||
bool processSlot(const QString &name, const Value *) override
|
||||
{
|
||||
qCDebug(qmljsLog) << "slot: " << name;
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool processGeneratedSlot(const QString &name, const Value *)
|
||||
bool processGeneratedSlot(const QString &name, const Value *) override
|
||||
{
|
||||
qCDebug(qmljsLog) << "generated slot: " << name;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user