Commit b495b34d0238629c443bfdbb14f11367e80c54a4

Authored by Josh Klontz
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,7 +856,7 @@ struct Factory
856 else qFatal("%s registry does not contain object named: %s", qPrintable(baseClassName()), qPrintable(name)); 856 else qFatal("%s registry does not contain object named: %s", qPrintable(baseClassName()), qPrintable(name));
857 } 857 }
858 T *object = registry->value(name)->_make(); 858 T *object = registry->value(name)->_make();
859 - object->init(file); 859 + static_cast<Object*>(object)->init(file);
860 return object; 860 return object;
861 } 861 }
862 //! [Factory make] 862 //! [Factory make]