mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge pull request #12458 from DEEPIR:3.4
* may be an typo fix
* remove identical branch,may be paste error
* add parentheses around macro parameter
* simplify if condition
* check malloc fail
* change the condition of branch removed by commit 3041502861
This commit is contained in:
@@ -229,7 +229,7 @@ public:
|
||||
virtual bool getDetectShadows() const CV_OVERRIDE { return bShadowDetection; }
|
||||
virtual void setDetectShadows(bool detectshadows) CV_OVERRIDE
|
||||
{
|
||||
if ((bShadowDetection && detectshadows) || (!bShadowDetection && !detectshadows))
|
||||
if (bShadowDetection == detectshadows)
|
||||
return;
|
||||
bShadowDetection = detectshadows;
|
||||
#ifdef HAVE_OPENCL
|
||||
|
||||
@@ -266,7 +266,7 @@ public:
|
||||
virtual bool getDetectShadows() const CV_OVERRIDE { return bShadowDetection; }
|
||||
virtual void setDetectShadows(bool detectshadows) CV_OVERRIDE
|
||||
{
|
||||
if ((bShadowDetection && detectshadows) || (!bShadowDetection && !detectshadows))
|
||||
if (bShadowDetection == detectshadows)
|
||||
return;
|
||||
bShadowDetection = detectshadows;
|
||||
#ifdef HAVE_OPENCL
|
||||
|
||||
Reference in New Issue
Block a user