From 25be4186bc423e583499118e81041ef846c273a8 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 20 Mar 2018 18:27:26 +0300 Subject: [PATCH] python: apply CV_OVERRIDE/CV_FINAL --- modules/python/src2/cv2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/python/src2/cv2.cpp b/modules/python/src2/cv2.cpp index 8ed6478bcc..63b631d399 100644 --- a/modules/python/src2/cv2.cpp +++ b/modules/python/src2/cv2.cpp @@ -158,7 +158,7 @@ public: return u; } - UMatData* allocate(int dims0, const int* sizes, int type, void* data, size_t* step, int flags, UMatUsageFlags usageFlags) const + UMatData* allocate(int dims0, const int* sizes, int type, void* data, size_t* step, int flags, UMatUsageFlags usageFlags) const CV_OVERRIDE { if( data != 0 ) { @@ -187,12 +187,12 @@ public: return allocate(o, dims0, sizes, type, step); } - bool allocate(UMatData* u, int accessFlags, UMatUsageFlags usageFlags) const + bool allocate(UMatData* u, int accessFlags, UMatUsageFlags usageFlags) const CV_OVERRIDE { return stdAllocator->allocate(u, accessFlags, usageFlags); } - void deallocate(UMatData* u) const + void deallocate(UMatData* u) const CV_OVERRIDE { if(!u) return;