using explicit keyword in the ERStat constructor for safe contruction
This commit is contained in:
parent
9fbff009e9
commit
ca6b30a568
@ -64,7 +64,7 @@ struct CV_EXPORTS ERStat
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//! Constructor
|
//! Constructor
|
||||||
ERStat(int level = 256, int pixel = 0, int x = 0, int y = 0);
|
explicit ERStat(int level = 256, int pixel = 0, int x = 0, int y = 0);
|
||||||
//! Destructor
|
//! Destructor
|
||||||
~ERStat(){};
|
~ERStat(){};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user