aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljsinterpreter.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <[email protected]>2018-06-22 15:11:29 +0200
committerAlessandro Portale <[email protected]>2018-06-26 10:38:38 +0000
commit4b13170565595ed64e89589f5a54a756920a6ec0 (patch)
treebc77a0870f2cac3dad3d5cb6772ee54117b1b719 /src/libs/qmljs/qmljsinterpreter.cpp
parent64b8f98a351a4af2e3e98c57e60d4eb0402b278d (diff)
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 <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsinterpreter.cpp')
-rw-r--r--src/libs/qmljs/qmljsinterpreter.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp
index eaf27d433e7..d8df6ed570f 100644
--- a/src/libs/qmljs/qmljsinterpreter.cpp
+++ b/src/libs/qmljs/qmljsinterpreter.cpp
@@ -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;