diff --git a/modules/imgproc/src/morph.cpp b/modules/imgproc/src/morph.cpp index d8921b5854..432d026033 100644 --- a/modules/imgproc/src/morph.cpp +++ b/modules/imgproc/src/morph.cpp @@ -1099,10 +1099,7 @@ private: Point anchor; int rowBorderType; int columnBorderType; - const Scalar& borderValue; - - MorphologyRunner(const MorphologyRunner&); - MorphologyRunner& operator=(const MorphologyRunner&); + Scalar borderValue; }; static void morphOp( int op, InputArray _src, OutputArray _dst,