Fix missingOverride warnings in democlient

This commit is contained in:
Daniel Marjamäki 2019-01-13 13:18:50 +01:00
parent ade18d978a
commit 58c007b726
1 changed files with 3 additions and 3 deletions

View File

@ -44,8 +44,8 @@ public:
cppcheck.check("test.cpp", code);
}
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 {
const std::string s = msg.toString(true);
std::cout << s << std::endl;
@ -56,7 +56,7 @@ public:
void reportProgress(const std::string& filename,
const char stage[],
const unsigned int value) {
const unsigned int value) override {
if (std::time(nullptr) >= stoptime) {
std::cout << "Time to analyse the code exceeded 2 seconds. Terminating.\n\n";
cppcheck.terminate();