mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Merge pull request #21107 from take1014:remove_assert_21038
resolves #21038 * remove C assert * revert C header * fix several points in review * fix test_ds.cpp
This commit is contained in:
@@ -160,7 +160,7 @@ void icvFSCreateCollection( CvFileStorage* fs, int tag, CvFileNode* collection )
|
||||
{
|
||||
if( collection->tag != CV_NODE_NONE )
|
||||
{
|
||||
assert( fs->fmt == CV_STORAGE_FORMAT_XML );
|
||||
CV_Assert( fs->fmt == CV_STORAGE_FORMAT_XML );
|
||||
CV_PARSE_ERROR( "Sequence element should not have name (use <_></_>)" );
|
||||
}
|
||||
|
||||
@@ -551,7 +551,7 @@ int icvDecodeFormat( const char* dt, int* fmt_pairs, int max_len )
|
||||
if( !dt || !len )
|
||||
return 0;
|
||||
|
||||
assert( fmt_pairs != 0 && max_len > 0 );
|
||||
CV_Assert( fmt_pairs != 0 && max_len > 0 );
|
||||
fmt_pairs[0] = 0;
|
||||
max_len *= 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user