fixed ABI incompatibilities as proposed by alalek
related to issue 4969 fixes issue 5891 fixes issue 5922
This commit is contained in:
@@ -2261,14 +2261,14 @@ Ptr<SVM> SVM::create()
|
||||
return makePtr<SVMImpl>();
|
||||
}
|
||||
|
||||
Ptr<SVM> SVM::load(const String& filename)
|
||||
Ptr<SVM> SVM::load(const String& filepath)
|
||||
{
|
||||
FileStorage fs;
|
||||
fs.open(filename, FileStorage::READ);
|
||||
fs.open(filepath, FileStorage::READ);
|
||||
|
||||
Ptr<SVM> svm = makePtr<SVMImpl>();
|
||||
|
||||
svm->read(fs.getFirstTopLevelNode());
|
||||
((SVMImpl*)svm.get())->read(fs.getFirstTopLevelNode());
|
||||
return svm;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user