mirror of
https://github.com/opencv/opencv.git
synced 2026-10-02 04:02:40 +03:00
don't use constructors for C API structures
This commit is contained in:
1 parent
ad146e5a6b
commit
8a3c394d6a
70 files changed
+547
-578
No files matched your search
@@ -452,12 +452,12 @@ void write( FileStorage& fs, const String& name, const Mat& value )
|
||||
{
|
||||
if( value.dims <= 2 )
|
||||
{
|
||||
CvMat mat = value;
|
||||
CvMat mat = cvMat(value);
|
||||
cvWrite( *fs, name.size() ? name.c_str() : 0, &mat );
|
||||
}
|
||||
else
|
||||
{
|
||||
CvMatND mat = value;
|
||||
CvMatND mat = cvMatND(value);
|
||||
cvWrite( *fs, name.size() ? name.c_str() : 0, &mat );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user