Commit 3959329e authored by berak's avatar berak

proper initialization for ccimpl in bool CascadeClassifier::read(const FileNode

parent 42ac3123
......@@ -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>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment