Merge pull request #2280 from ilya-lavrenov:attempt_pvc

pull/2282/head
Andrey Pavlenko 11 years ago committed by OpenCV Buildbot
commit 564f5fcca3
  1. 4
      modules/core/src/matrix.cpp
  2. 4
      modules/core/src/ocl.cpp

@ -221,8 +221,8 @@ public:
MatAllocator* Mat::getStdAllocator()
{
static StdMatAllocator allocator;
return &allocator;
static MatAllocator * allocator = new StdMatAllocator();
return allocator;
}
void swap( Mat& a, Mat& b )

@ -3959,8 +3959,8 @@ public:
MatAllocator* getOpenCLAllocator()
{
static OpenCLAllocator allocator;
return &allocator;
static MatAllocator * allocator = new OpenCLAllocator();
return allocator;
}
///////////////////////////////////////////// Utility functions /////////////////////////////////////////////////

Loading…
Cancel
Save