Fix Cppcheck missingOverride warnings
This commit is contained in:
parent
58c007b726
commit
51afcb2f64
|
@ -110,7 +110,7 @@ public:
|
||||||
std::list<CTU::FileInfo::UnsafeUsage> unsafeUsage;
|
std::list<CTU::FileInfo::UnsafeUsage> unsafeUsage;
|
||||||
|
|
||||||
/** Convert MyFileInfo data into xml string */
|
/** Convert MyFileInfo data into xml string */
|
||||||
std::string toString() const;
|
std::string toString() const OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @brief Parse current TU and extract file info */
|
/** @brief Parse current TU and extract file info */
|
||||||
|
|
|
@ -96,7 +96,7 @@ public:
|
||||||
std::list<CTU::FileInfo::UnsafeUsage> unsafeUsage;
|
std::list<CTU::FileInfo::UnsafeUsage> unsafeUsage;
|
||||||
|
|
||||||
/** Convert MyFileInfo data into xml string */
|
/** Convert MyFileInfo data into xml string */
|
||||||
std::string toString() const;
|
std::string toString() const OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @brief Parse current TU and extract file info */
|
/** @brief Parse current TU and extract file info */
|
||||||
|
|
|
@ -61,7 +61,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShowResults(SHOWTIME_MODES mode) const;
|
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:
|
private:
|
||||||
std::map<std::string, struct TimerResultsData> mResults;
|
std::map<std::string, struct TimerResultsData> mResults;
|
||||||
|
|
|
@ -63,14 +63,14 @@ public:
|
||||||
return foundLine;
|
return foundLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
void reportOut(const std::string &/*outmsg*/) { }
|
void reportOut(const std::string &/*outmsg*/) override { }
|
||||||
void reportErr(const ErrorLogger::ErrorMessage &msg) {
|
void reportErr(const ErrorLogger::ErrorMessage &msg) override {
|
||||||
if (!pattern.empty() && msg.toString(false).find(pattern) != std::string::npos) {
|
if (!pattern.empty() && msg.toString(false).find(pattern) != std::string::npos) {
|
||||||
foundLine = true;
|
foundLine = true;
|
||||||
cppcheck.terminate();
|
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 (std::time(0) > stopTime) {
|
||||||
if (pattern.empty())
|
if (pattern.empty())
|
||||||
foundLine = true;
|
foundLine = true;
|
||||||
|
|
Loading…
Reference in New Issue