fixed ABI incompatibilities as proposed by alalek

related to issue 4969
fixes issue 5891
fixes issue 5922
This commit is contained in:
Christoph Spörk
2016-01-07 08:00:01 +01:00
parent a7aa198b4c
commit 6c8bc6a25b
2 changed files with 11 additions and 6 deletions

View File

@@ -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;
}