[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim] /: Remove virtual when not necessary
From: Montel Laurent <montel () kde ! org>
Date: 2014-12-15 21:58:02
Message-ID: E1Y0deU-0007bh-Gl () scm ! kde ! org
[Download RAW message or body]
Git commit aab4596295818fccfb2abe57c59a236c087684ad by Montel Laurent.
Committed on 15/12/2014 at 21:57.
Pushed by mlaurent into branch 'master'.
Remove virtual when not necessary
M +3 -3 calendarviews/month/monthgraphicsitems.h
M +12 -12 knotes/configdialog/knoteconfigdialog.h
M +1 -1 messagelist/core/delegate.h
M +2 -2 messagelist/core/theme.h
http://commits.kde.org/kdepim/aab4596295818fccfb2abe57c59a236c087684ad
diff --git a/calendarviews/month/monthgraphicsitems.h b/calendarviews/month/monthgraphicsitems.h
index 212fdb3..4c16417 100644
--- a/calendarviews/month/monthgraphicsitems.h
+++ b/calendarviews/month/monthgraphicsitems.h
@@ -201,9 +201,9 @@ public:
/**
Reimplemented from QGraphicsItem
*/
- virtual QRectF boundingRect() const Q_DECL_OVERRIDE;
- virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) Q_DECL_OVERRIDE;
- virtual QPainterPath shape() const Q_DECL_OVERRIDE;
+ QRectF boundingRect() const Q_DECL_OVERRIDE;
+ void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) Q_DECL_OVERRIDE;
+ QPainterPath shape() const Q_DECL_OVERRIDE;
private:
// Shape of the item, see shape()
diff --git a/knotes/configdialog/knoteconfigdialog.h b/knotes/configdialog/knoteconfigdialog.h
index 3f3ee3c..d30acff 100644
--- a/knotes/configdialog/knoteconfigdialog.h
+++ b/knotes/configdialog/knoteconfigdialog.h
@@ -48,8 +48,8 @@ class KNoteDisplayConfig : public KCModule
public:
KNoteDisplayConfig(QWidget *parent);
/** Reimplemented from KCModule. */
- virtual void load() Q_DECL_OVERRIDE;
- virtual void save() Q_DECL_OVERRIDE;
+ void load() Q_DECL_OVERRIDE;
+ void save() Q_DECL_OVERRIDE;
};
class KNoteEditorConfig : public KCModule
@@ -58,8 +58,8 @@ class KNoteEditorConfig : public KCModule
public:
KNoteEditorConfig(QWidget *parent);
/** Reimplemented from KCModule. */
- virtual void load() Q_DECL_OVERRIDE;
- virtual void save() Q_DECL_OVERRIDE;
+ void load() Q_DECL_OVERRIDE;
+ void save() Q_DECL_OVERRIDE;
};
class KNoteMiscConfig : public KCModule
@@ -68,9 +68,9 @@ class KNoteMiscConfig : public KCModule
public:
KNoteMiscConfig(QWidget *parent);
/** Reimplemented from KCModule. */
- virtual void load() Q_DECL_OVERRIDE;
- virtual void save() Q_DECL_OVERRIDE;
- virtual void defaults() Q_DECL_OVERRIDE;
+ void load() Q_DECL_OVERRIDE;
+ void save() Q_DECL_OVERRIDE;
+ void defaults() Q_DECL_OVERRIDE;
private Q_SLOTS:
void slotHelpLinkClicked(const QString &);
private:
@@ -83,9 +83,9 @@ class KNotePrintConfig : public KCModule
public:
KNotePrintConfig(QWidget *parent);
/** Reimplemented from KCModule. */
- virtual void load() Q_DECL_OVERRIDE;
- virtual void save() Q_DECL_OVERRIDE;
- virtual void defaults() Q_DECL_OVERRIDE;
+ void load() Q_DECL_OVERRIDE;
+ void save() Q_DECL_OVERRIDE;
+ void defaults() Q_DECL_OVERRIDE;
private Q_SLOTS:
void slotThemeChanged();
@@ -101,8 +101,8 @@ class KNoteCollectionConfig : public KCModule
public:
KNoteCollectionConfig(QWidget *parent);
/** Reimplemented from KCModule. */
- virtual void load() Q_DECL_OVERRIDE;
- virtual void save() Q_DECL_OVERRIDE;
+ void load() Q_DECL_OVERRIDE;
+ void save() Q_DECL_OVERRIDE;
private:
KNoteCollectionConfigWidget *mCollectionConfigWidget;
diff --git a/messagelist/core/delegate.h b/messagelist/core/delegate.h
index a22bda5..2216717 100644
--- a/messagelist/core/delegate.h
+++ b/messagelist/core/delegate.h
@@ -41,7 +41,7 @@ protected:
/**
* Returns the Item for the specified model index. Reimplemented from ThemeDelegate.
*/
- virtual Item *itemFromIndex(const QModelIndex &index) const Q_DECL_OVERRIDE;
+ Item *itemFromIndex(const QModelIndex &index) const Q_DECL_OVERRIDE;
};
} // namespace Core
diff --git a/messagelist/core/theme.h b/messagelist/core/theme.h
index 36d150b..9297316 100644
--- a/messagelist/core/theme.h
+++ b/messagelist/core/theme.h
@@ -1199,12 +1199,12 @@ protected:
/**
* Pure virtual reimplemented from OptionSet.
*/
- virtual void save(QDataStream &stream) const Q_DECL_OVERRIDE;
+ void save(QDataStream &stream) const Q_DECL_OVERRIDE;
/**
* Pure virtual reimplemented from OptionSet.
*/
- virtual bool load(QDataStream &stream) Q_DECL_OVERRIDE;
+ bool load(QDataStream &stream) Q_DECL_OVERRIDE;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic