Commit b495b34d0238629c443bfdbb14f11367e80c54a4
1 parent
ab636546
allow plugin base classes to overload init
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/openbr_plugin.h
| ... | ... | @@ -856,7 +856,7 @@ struct Factory |
| 856 | 856 | else qFatal("%s registry does not contain object named: %s", qPrintable(baseClassName()), qPrintable(name)); |
| 857 | 857 | } |
| 858 | 858 | T *object = registry->value(name)->_make(); |
| 859 | - object->init(file); | |
| 859 | + static_cast<Object*>(object)->init(file); | |
| 860 | 860 | return object; |
| 861 | 861 | } |
| 862 | 862 | //! [Factory make] | ... | ... |