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:
parent
9ba805d78f
commit
94e1c64dff
@ -148,8 +148,6 @@ namespace modules {
|
||||
|
||||
bool input(const string& action, const string& data);
|
||||
|
||||
static constexpr auto TYPE = "";
|
||||
|
||||
protected:
|
||||
void broadcast();
|
||||
void idle();
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user