diff --git a/openbr/openbr_plugin.h b/openbr/openbr_plugin.h index 5b22901..7aadf8d 100644 --- a/openbr/openbr_plugin.h +++ b/openbr/openbr_plugin.h @@ -946,8 +946,7 @@ struct Factory static QString parameters(const QString &name) { if (!registry) return QString(); - QScopedPointer object(registry->value(name)->_make()); - object->init(name); + T *object = make("." + name); return object->parameters().join(", "); }