driver: Add missing override specifiers where applicable

Adds missing override specifiers to enforce correct virtual member
function signatures.
This commit is contained in:
Lioncash 2019-08-19 22:34:12 -04:00
parent 1fb18dbf26
commit c390f3d489
7 changed files with 18 additions and 18 deletions

View File

@ -145,9 +145,9 @@ public:
}
}
hecl::SystemString toolName() const { return _SYS_STR("cook"); }
hecl::SystemString toolName() const override { return _SYS_STR("cook"); }
int run() {
int run() override {
hecl::MultiProgressPrinter printer(true);
hecl::ClientProcess cp(&printer);
for (const hecl::ProjectPath& path : m_selectedItems)
@ -156,5 +156,5 @@ public:
return 0;
}
void cancel() { m_useProj->interruptCook(); }
void cancel() override { m_useProj->interruptCook(); }
};

View File

@ -112,7 +112,7 @@ public:
help.endWrap();
}
hecl::SystemString toolName() const { return _SYS_STR("extract"); }
hecl::SystemString toolName() const override { return _SYS_STR("extract"); }
static void _recursivePrint(int level, hecl::Database::IDataSpec::ExtractReport& rep) {
for (int l = 0; l < level; ++l)
@ -129,7 +129,7 @@ public:
_recursivePrint(level + 1, child);
}
int run() {
int run() override {
if (m_specPasses.empty()) {
if (XTERM_COLOR)
fmt::print(fmt(_SYS_STR("" RED BOLD "NOTHING TO EXTRACT" NORMAL "\n")));

View File

@ -15,7 +15,7 @@ public:
m_good = true;
}
~ToolHelp() {}
~ToolHelp() override = default;
static void Help(HelpOutput& help) {
help.printBold(
@ -72,9 +72,9 @@ public:
ho.go();
}
hecl::SystemString toolName() const { return _SYS_STR("help"); }
hecl::SystemString toolName() const override { return _SYS_STR("help"); }
int run() {
int run() override {
ShowHelp(m_info.args.front());
return 0;
}

View File

@ -44,7 +44,7 @@ public:
"provided a path within a project"));
}
~ToolImage() {}
~ToolImage() override = default;
static void Help(HelpOutput& help) {
help.secHead(_SYS_STR("NAME"));
@ -71,9 +71,9 @@ public:
help.endWrap();
}
hecl::SystemString toolName() const { return _SYS_STR("image"); }
hecl::SystemString toolName() const override { return _SYS_STR("image"); }
int run() {
int run() override {
if (XTERM_COLOR)
fmt::print(fmt(_SYS_STR("" GREEN BOLD "ABOUT TO IMAGE:" NORMAL "\n")));
else

View File

@ -36,7 +36,7 @@ public:
m_dir = dir;
}
int run() {
int run() override {
if (!m_dir)
return 1;
size_t ErrorRef = logvisor::ErrorCount;
@ -73,5 +73,5 @@ public:
help.endWrap();
}
hecl::SystemString toolName() const { return _SYS_STR("init"); }
hecl::SystemString toolName() const override { return _SYS_STR("init"); }
};

View File

@ -156,9 +156,9 @@ public:
help.endWrap();
}
hecl::SystemString toolName() const { return _SYS_STR("package"); }
hecl::SystemString toolName() const override { return _SYS_STR("package"); }
int run() {
int run() override {
if (XTERM_COLOR)
fmt::print(fmt(_SYS_STR("" GREEN BOLD "ABOUT TO PACKAGE:" NORMAL "\n")));
else
@ -181,5 +181,5 @@ public:
return 0;
}
void cancel() { m_useProj->interruptCook(); }
void cancel() override { m_useProj->interruptCook(); }
};

View File

@ -71,9 +71,9 @@ public:
help.endWrap();
}
hecl::SystemString toolName() const { return _SYS_STR("spec"); }
hecl::SystemString toolName() const override { return _SYS_STR("spec"); }
int run() {
int run() override {
if (!m_info.project) {
for (const hecl::Database::DataSpecEntry* spec : hecl::Database::DATA_SPEC_REGISTRY) {
if (XTERM_COLOR)