1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00
This commit is contained in:
Vadim Pisarevsky
2015-04-29 11:47:12 +03:00
parent 30a3ff0de6
commit a8226814c5
+2 -3
View File
@@ -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 )