Add missing 'override' for overridden functions

This commit is contained in:
Gianluca Recchia 2018-10-29 21:14:35 +01:00
parent 0f604aa8c7
commit e06eae423e
No known key found for this signature in database
GPG Key ID: 3C2B4128D9A1F218
14 changed files with 15 additions and 15 deletions

View File

@ -41,8 +41,8 @@ signals:
void quit(); void quit();
private: private:
void readLength(); void readLength() override;
bool readStdIn(const quint32 length); bool readStdIn(const quint32 length) override;
void sendReplyToAllClients(const QJsonObject& json); void sendReplyToAllClients(const QJsonObject& json);
private slots: private slots:

View File

@ -25,7 +25,7 @@ class Add : public Command
public: public:
Add(); Add();
~Add(); ~Add();
int execute(const QStringList& arguments); int execute(const QStringList& arguments) override;
}; };
#endif // KEEPASSXC_ADD_H #endif // KEEPASSXC_ADD_H

View File

@ -25,7 +25,7 @@ class Clip : public Command
public: public:
Clip(); Clip();
~Clip(); ~Clip();
int execute(const QStringList& arguments); int execute(const QStringList& arguments) override;
int clipEntry(Database* database, const QString& entryPath, const QString& timeout); int clipEntry(Database* database, const QString& entryPath, const QString& timeout);
}; };

View File

@ -25,7 +25,7 @@ class Diceware : public Command
public: public:
Diceware(); Diceware();
~Diceware(); ~Diceware();
int execute(const QStringList& arguments); int execute(const QStringList& arguments) override;
}; };
#endif // KEEPASSXC_DICEWARE_H #endif // KEEPASSXC_DICEWARE_H

View File

@ -25,7 +25,7 @@ class Edit : public Command
public: public:
Edit(); Edit();
~Edit(); ~Edit();
int execute(const QStringList& arguments); int execute(const QStringList& arguments) override;
}; };
#endif // KEEPASSXC_EDIT_H #endif // KEEPASSXC_EDIT_H

View File

@ -25,7 +25,7 @@ class Estimate : public Command
public: public:
Estimate(); Estimate();
~Estimate(); ~Estimate();
int execute(const QStringList& arguments); int execute(const QStringList& arguments) override;
}; };
#endif // KEEPASSXC_ESTIMATE_H #endif // KEEPASSXC_ESTIMATE_H

View File

@ -25,7 +25,7 @@ class Extract : public Command
public: public:
Extract(); Extract();
~Extract(); ~Extract();
int execute(const QStringList& arguments); int execute(const QStringList& arguments) override;
}; };
#endif // KEEPASSXC_EXTRACT_H #endif // KEEPASSXC_EXTRACT_H

View File

@ -25,7 +25,7 @@ class Generate : public Command
public: public:
Generate(); Generate();
~Generate(); ~Generate();
int execute(const QStringList& arguments); int execute(const QStringList& arguments) override;
}; };
#endif // KEEPASSXC_GENERATE_H #endif // KEEPASSXC_GENERATE_H

View File

@ -25,7 +25,7 @@ class List : public Command
public: public:
List(); List();
~List(); ~List();
int execute(const QStringList& arguments); int execute(const QStringList& arguments) override;
int listGroup(Database* database, bool recursive, const QString& groupPath = {}); int listGroup(Database* database, bool recursive, const QString& groupPath = {});
}; };

View File

@ -25,7 +25,7 @@ class Locate : public Command
public: public:
Locate(); Locate();
~Locate(); ~Locate();
int execute(const QStringList& arguments); int execute(const QStringList& arguments) override;
int locateEntry(Database* database, const QString& searchTerm); int locateEntry(Database* database, const QString& searchTerm);
}; };

View File

@ -25,7 +25,7 @@ class Merge : public Command
public: public:
Merge(); Merge();
~Merge(); ~Merge();
int execute(const QStringList& arguments); int execute(const QStringList& arguments) override;
}; };
#endif // KEEPASSXC_MERGE_H #endif // KEEPASSXC_MERGE_H

View File

@ -27,7 +27,7 @@ class Remove : public Command
public: public:
Remove(); Remove();
~Remove(); ~Remove();
int execute(const QStringList& arguments); int execute(const QStringList& arguments) override;
int removeEntry(Database* database, const QString& databasePath, const QString& entryPath); int removeEntry(Database* database, const QString& databasePath, const QString& entryPath);
}; };

View File

@ -25,7 +25,7 @@ class Show : public Command
public: public:
Show(); Show();
~Show(); ~Show();
int execute(const QStringList& arguments); int execute(const QStringList& arguments) override;
int showEntry(Database* database, QStringList attributes, const QString& entryPath); int showEntry(Database* database, QStringList attributes, const QString& entryPath);
}; };

View File

@ -37,7 +37,7 @@
class KeePass1Key : public CompositeKey class KeePass1Key : public CompositeKey
{ {
public: public:
virtual QByteArray rawKey() const; QByteArray rawKey() const override;
virtual void clear(); virtual void clear();
void setPassword(const QByteArray& password); void setPassword(const QByteArray& password);
void setKeyfileData(const QByteArray& keyfileData); void setKeyfileData(const QByteArray& keyfileData);