Download MetaTrader 5

Bug in CheckBox.mqh

To add comments, please log in or register
Enable MQL5 Storage to store your source codes. It is free!
Zoltan Meszaros
2006
Zoltan Meszaros 2015.02.11 08:58 

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
5798
Stuart Browne 2015.02.11 09:00  
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
2006
Zoltan Meszaros 2015.02.11 09:40  
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