mirror of
https://github.com/opencv/opencv.git
synced 2026-11-24 10:18:08 -06:00
avoid Ptr<> == NULL checks
This commit is contained in:
@@ -537,7 +537,7 @@ void read( const FileNode& node, SparseMat& mat, const SparseMat& default_mat )
|
||||
return;
|
||||
}
|
||||
Ptr<CvSparseMat> m((CvSparseMat*)cvRead((CvFileStorage*)node.fs, (CvFileNode*)*node));
|
||||
CV_Assert(CV_IS_SPARSE_MAT(m));
|
||||
CV_Assert(CV_IS_SPARSE_MAT(m.get()));
|
||||
m->copyToSparseMat(mat);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user