This commit is contained in:
parent
30a3ff0de6
commit
a8226814c5
@ -222,11 +222,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
MatAllocator* Mat::getStdAllocator()
|
||||
{
|
||||
static MatAllocator * allocator = new StdMatAllocator();
|
||||
return allocator;
|
||||
static StdMatAllocator allocator;
|
||||
return &allocator;
|
||||
}
|
||||
|
||||
void swap( Mat& a, Mat& b )
|
||||
|
Loading…
x
Reference in New Issue
Block a user