Fix Cppcheck missingOverride warnings

This commit is contained in:
Daniel Marjamäki 2019-01-13 13:22:36 +01:00
parent 58c007b726
commit 51afcb2f64
4 changed files with 6 additions and 6 deletions

View File

@ -110,7 +110,7 @@ public:
std::list<CTU::FileInfo::UnsafeUsage> unsafeUsage;
/** Convert MyFileInfo data into xml string */
std::string toString() const;
std::string toString() const OVERRIDE;
};
/** @brief Parse current TU and extract file info */

View File

@ -96,7 +96,7 @@ public:
std::list<CTU::FileInfo::UnsafeUsage> unsafeUsage;
/** Convert MyFileInfo data into xml string */
std::string toString() const;
std::string toString() const OVERRIDE;
};
/** @brief Parse current TU and extract file info */

View File

@ -61,7 +61,7 @@ public:
}
void ShowResults(SHOWTIME_MODES mode) const;
virtual void AddResults(const std::string& str, std::clock_t clocks) OVERRIDE;
void AddResults(const std::string& str, std::clock_t clocks) OVERRIDE;
private:
std::map<std::string, struct TimerResultsData> mResults;

View File

@ -63,14 +63,14 @@ public:
return foundLine;
}
void reportOut(const std::string &/*outmsg*/) { }
void reportErr(const ErrorLogger::ErrorMessage &msg) {
void reportOut(const std::string &/*outmsg*/) override { }
void reportErr(const ErrorLogger::ErrorMessage &msg) override {
if (!pattern.empty() && msg.toString(false).find(pattern) != std::string::npos) {
foundLine = true;
cppcheck.terminate();
}
}
void reportProgress(const std::string &/*filename*/, const char /*stage*/[], const std::size_t /*value*/) {
void reportProgress(const std::string &/*filename*/, const char /*stage*/[], const std::size_t /*value*/) override {
if (std::time(0) > stopTime) {
if (pattern.empty())
foundLine = true;