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