mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge pull request #4150 from alalek:opencv_org_issue_4428
This commit is contained in:
@@ -222,14 +222,9 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static StdMatAllocator *mat_allocator = NULL;
|
||||
MatAllocator* Mat::getStdAllocator()
|
||||
{
|
||||
if (mat_allocator == NULL)
|
||||
{
|
||||
mat_allocator = new StdMatAllocator();
|
||||
}
|
||||
return mat_allocator;
|
||||
CV_SINGLETON_LAZY_INIT(MatAllocator, new StdMatAllocator())
|
||||
}
|
||||
|
||||
void swap( Mat& a, Mat& b )
|
||||
|
||||
Reference in New Issue
Block a user