fix: Module type always empty string

The change in #2270 accidentally broke how we access module types.
module<Impl>::TYPE always points to the module superclass and it thus
accesses its empty TYPE field.

This mainly broke legacy action handling.

Ref #2270
This commit is contained in:
patrick96 2020-12-13 15:24:31 +01:00 committed by Patrick Ziegler
parent 9ba805d78f
commit 94e1c64dff
2 changed files with 1 additions and 3 deletions

View File

@ -148,8 +148,6 @@ namespace modules {
bool input(const string& action, const string& data);
static constexpr auto TYPE = "";
protected:
void broadcast();
void idle();

View File

@ -48,7 +48,7 @@ namespace modules {
template <typename Impl>
string module<Impl>::type() const {
return string(module<Impl>::TYPE);
return string(Impl::TYPE);
}
template <typename Impl>