aboutsummaryrefslogtreecommitdiff
path: root/src/core/kconfiggroup.h
diff options
context:
space:
mode:
authorKevin Funk <kfunk@kde.org>2015-02-12 00:17:57 +0100
committerKevin Funk <kfunk@kde.org>2015-02-12 13:54:33 +0100
commit28ddbf8138c865e19e8836b49af74f9d3bc20401 (patch)
treef4c0540132f4e79ff684915a33aa4c12666da2f4 /src/core/kconfiggroup.h
parent11585e2fccf742798ab3396726f87323b54b3ac9 (diff)
downloadkconfig-28ddbf8138c865e19e8836b49af74f9d3bc20401.tar.gz
kconfig-28ddbf8138c865e19e8836b49af74f9d3bc20401.tar.bz2
Use Q_DECL_OVERRIDE where possible
With -Winconsistent-missing-override (Clang), headers from KConfig are throwing a lot of warnings. REVIEW: 122539
Diffstat (limited to 'src/core/kconfiggroup.h')
-rw-r--r--src/core/kconfiggroup.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/kconfiggroup.h b/src/core/kconfiggroup.h
index abb246e3..9ddf886e 100644
--- a/src/core/kconfiggroup.h
+++ b/src/core/kconfiggroup.h
@@ -127,10 +127,10 @@ public:
bool sync() Q_DECL_OVERRIDE;
/// @reimp
- void markAsClean();
+ void markAsClean() Q_DECL_OVERRIDE;
/// @reimp
- AccessMode accessMode() const;
+ AccessMode accessMode() const Q_DECL_OVERRIDE;
/**
* Return the config object that this group belongs to
@@ -203,7 +203,7 @@ public:
/**
* @reimp
*/
- QStringList groupList() const;
+ QStringList groupList() const Q_DECL_OVERRIDE;
/**
* Returns a list of keys this group contains
@@ -546,7 +546,7 @@ public:
*
* @return @c false if the group may be changed, @c true otherwise
*/
- bool isImmutable() const;
+ bool isImmutable() const Q_DECL_OVERRIDE;
/**
* Checks if it is possible to change the given entry
@@ -624,11 +624,11 @@ public:
QMap<QString, QString> entryMap() const;
protected:
- bool hasGroupImpl(const QByteArray &group) const;
- KConfigGroup groupImpl(const QByteArray &b);
- const KConfigGroup groupImpl(const QByteArray &b) const;
- void deleteGroupImpl(const QByteArray &group, WriteConfigFlags flags);
- bool isGroupImmutableImpl(const QByteArray &aGroup) const;
+ bool hasGroupImpl(const QByteArray &group) const Q_DECL_OVERRIDE;
+ KConfigGroup groupImpl(const QByteArray &b) Q_DECL_OVERRIDE;
+ const KConfigGroup groupImpl(const QByteArray &b) const Q_DECL_OVERRIDE;
+ void deleteGroupImpl(const QByteArray &group, WriteConfigFlags flags) Q_DECL_OVERRIDE;
+ bool isGroupImmutableImpl(const QByteArray &aGroup) const Q_DECL_OVERRIDE;
private:
QExplicitlySharedDataPointer<KConfigGroupPrivate> d;