Commit ed97644f793bef1955d6bd49d7d8fc97256ec2f8
Merge branch 'master' of https://github.com/biometrics/openbr
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] | ... | ... |