diff --git a/openbr/openbr_plugin.h b/openbr/openbr_plugin.h index eb563c9..7215ca4 100644 --- a/openbr/openbr_plugin.h +++ b/openbr/openbr_plugin.h @@ -856,7 +856,7 @@ struct Factory else qFatal("%s registry does not contain object named: %s", qPrintable(baseClassName()), qPrintable(name)); } T *object = registry->value(name)->_make(); - object->init(file); + static_cast(object)->init(file); return object; } //! [Factory make]