Skip to content

Commit ca6b30a

Browse files
committed
using explicit keyword in the ERStat constructor for safe contruction
1 parent 9fbff00 commit ca6b30a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/objdetect/include/opencv2/objdetect/erfilter.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct CV_EXPORTS ERStat
6464
{
6565
public:
6666
//! Constructor
67-
ERStat(int level = 256, int pixel = 0, int x = 0, int y = 0);
67+
explicit ERStat(int level = 256, int pixel = 0, int x = 0, int y = 0);
6868
//! Destructor
6969
~ERStat(){};
7070

0 commit comments

Comments
 (0)