Download MetaTrader 5

Bug in CheckBox.mqh

To add comments, please log in or register
Zoltan Meszaros
2098
Zoltan Meszaros  

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

Stuart Browne
6045
Stuart Browne  
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 

Zoltan Meszaros
2098
Zoltan Meszaros  
Filter:

Hi Zoltan

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

Okey, thanks!
To add comments, please log in or register