Fix Cppcheck missingOverride warnings
This commit is contained in:
parent
58c007b726
commit
51afcb2f64
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue