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

pull/2322/head
berak 11 years ago
parent 42ac3123ec
commit 3959329ef4
  1. 2
      modules/objdetect/src/cascadedetect.cpp

@ -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>();

Loading…
Cancel
Save