Bug in CheckBox.mqh

 

Hi,

I've found a small bug in:

\MQL4\Include\Controls\CheckBox.mqh (MT4 Version 4.00 Build 765)

Missing one const keyword in declarations of CCheckBox class.

Original (current) version:

bool Checked(void) { return(m_button.Pressed()); }

Fixed:

bool Checked(void) const { return(m_button.Pressed()); }

Regards,

Zoltan

 
zmeszaros:

Hi,

I've found a small bug in:

\MQL4\Include\Controls\CheckBox.mqh (MT4 Version 4.00 Build 765)

Missing one const keyword in declarations of CCheckBox class.

Original (current) version:

bool Checked(void) { return(m_button.Pressed()); }

Fixed:

bool Checked(void) const { return(m_button.Pressed()); }

Regards,

Zoltan

Hi Zoltan

Please report any bugs to the Service Desk - they don't often hang around the forum ;) Thanks mate 

 
Filter:

Hi Zoltan

Please report any bugs to the Service Desk - they don't often hang around the forum ;) Thanks mate 

Okey, thanks!