Merge pull request #2322 from berak:b_cc_read

This commit is contained in:
Roman Donchenko 2014-02-12 16:32:29 +04:00 committed by OpenCV Buildbot
commit 863e9c699a

View File

@ -1557,7 +1557,7 @@ bool CascadeClassifier::load( const String& filename )
bool CascadeClassifier::read(const FileNode &root)
{
Ptr<CascadeClassifierImpl> ccimpl;
Ptr<CascadeClassifierImpl> ccimpl = makePtr<CascadeClassifierImpl>();
bool ok = ccimpl->read_(root);
if( ok )
cc = ccimpl.staticCast<BaseCascadeClassifier>();