Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Use override keyword

parent 55f6b547
......@@ -29,28 +29,28 @@ class CVSDiffParser : public ParserBase
{
public:
CVSDiffParser( const KompareModelList* list, const QStringList& diff );
virtual ~CVSDiffParser();
~CVSDiffParser() override;
protected:
enum Kompare::Format determineFormat() Q_DECL_OVERRIDE;
enum Kompare::Format determineFormat() override;
protected:
// virtual bool parseContextDiffHeader();
bool parseEdDiffHeader() Q_DECL_OVERRIDE;
bool parseNormalDiffHeader() Q_DECL_OVERRIDE;
bool parseRCSDiffHeader() Q_DECL_OVERRIDE;
bool parseEdDiffHeader() override;
bool parseNormalDiffHeader() override;
bool parseRCSDiffHeader() override;
// virtual bool parseUnifiedDiffHeader();
// virtual bool parseContextHunkHeader();
bool parseEdHunkHeader() Q_DECL_OVERRIDE;
bool parseEdHunkHeader() override;
// virtual bool parseNormalHunkHeader();
bool parseRCSHunkHeader() Q_DECL_OVERRIDE;
bool parseRCSHunkHeader() override;
// virtual bool parseUnifiedHunkHeader();
// virtual bool parseContextHunkBody();
bool parseEdHunkBody() Q_DECL_OVERRIDE;
bool parseEdHunkBody() override;
// virtual bool parseNormalHunkBody();
bool parseRCSHunkBody() Q_DECL_OVERRIDE;
bool parseRCSHunkBody() override;
// virtual bool parseUnifiedHunkBody();
};
......
......@@ -128,7 +128,7 @@ public:
public:
Difference( int sourceLineNo, int destinationLineNo, int type = Difference::Unchanged );
~Difference();
~Difference() override;
public:
int type() const { return m_type; };
......
......@@ -38,7 +38,7 @@ public:
DiffModel( const QString& srcBaseURL, const QString& destBaseURL );
DiffModel();
~DiffModel();
~DiffModel() override;
private:
DiffModel( const DiffModel& ) : QObject() {};
......
......@@ -25,10 +25,10 @@ class DiffParser : public ParserBase
{
public:
DiffParser( const KompareModelList* list, const QStringList& diff );
virtual ~DiffParser();
~DiffParser() override;
protected:
enum Kompare::Format determineFormat() Q_DECL_OVERRIDE;
enum Kompare::Format determineFormat() override;
};
} // End of namespace Diff2
......
......@@ -30,11 +30,11 @@ class DIFF2_EXPORT DiffSettings : public SettingsBase
Q_OBJECT
public:
explicit DiffSettings(QWidget* parent);
virtual ~DiffSettings();
~DiffSettings() override;
public:
// some virtual functions that will be overloaded from the base class
void loadSettings( KConfig* config ) Q_DECL_OVERRIDE;
void saveSettings( KConfig* config ) Q_DECL_OVERRIDE;
void loadSettings( KConfig* config ) override;
void saveSettings( KConfig* config ) override;
public:
QString m_diffProgram;
......
......@@ -42,7 +42,7 @@ class DIFF2_EXPORT KompareModelList : public QObject
Q_OBJECT
public:
KompareModelList( DiffSettings* diffSettings, QWidget* widgetForKIO, QObject* parent, const char* name = nullptr, bool isReadWrite = true);
~KompareModelList();
~KompareModelList() override;
public:
void refresh();
......
......@@ -34,7 +34,7 @@ class KompareProcess : public KProcess
public:
KompareProcess( DiffSettings* diffSettings, enum Kompare::DiffMode mode, const QString & source,
const QString & destination, const QString& directory = QString(), enum Kompare::Mode = Kompare::UnknownMode );
~KompareProcess();
~KompareProcess() override;
void start();
......
......@@ -25,16 +25,16 @@ class PerforceParser : public ParserBase
{
public:
PerforceParser( const KompareModelList* list, const QStringList& diff );
virtual ~PerforceParser();
~PerforceParser() override;
protected:
bool parseContextDiffHeader() Q_DECL_OVERRIDE;
bool parseNormalDiffHeader() Q_DECL_OVERRIDE;
bool parseRCSDiffHeader() Q_DECL_OVERRIDE;
bool parseUnifiedDiffHeader() Q_DECL_OVERRIDE;
bool parseContextDiffHeader() override;
bool parseNormalDiffHeader() override;
bool parseRCSDiffHeader() override;
bool parseUnifiedDiffHeader() override;
protected:
enum Kompare::Format determineFormat() Q_DECL_OVERRIDE;
enum Kompare::Format determineFormat() override;
};
} // End of namespace Diff2
......
......@@ -31,7 +31,7 @@ class DIFF2_EXPORT SettingsBase : public QObject
Q_OBJECT
public:
explicit SettingsBase(QWidget* parent);
~SettingsBase();
~SettingsBase() override;
public:
virtual void loadSettings( KConfig* config );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment