From b495b34d0238629c443bfdbb14f11367e80c54a4 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Fri, 8 Nov 2013 11:20:12 -0500 Subject: [PATCH] allow plugin base classes to overload init --- openbr/openbr_plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- libgit2 0.21.4