msgbox.h: Fixed method hiding issue by using 'virtual' keyword for setTimeOut

This should avoid potential -Woverloaded-virtual warnings.
This commit is contained in:
2024-07-04 16:08:36 +02:00
parent 126fd49b33
commit a14e84d286
2 changed files with 2 additions and 2 deletions

View File

@@ -213,7 +213,7 @@ class CHintBox : public CComponentsWindow
* @param[in] Timeout as int as seconds * @param[in] Timeout as int as seconds
* @param[in] enable_Timeout_Bar as bool * @param[in] enable_Timeout_Bar as bool
*/ */
virtual void setTimeOut(const int& Timeout, const bool& enable_Timeout_Bar){timeout = Timeout; enable_timeout_bar = enable_Timeout_Bar;} void setTimeOut(const int& Timeout, const bool& enable_Timeout_Bar){timeout = Timeout; enable_timeout_bar = enable_Timeout_Bar;}
/** /**
* enable/disable visualized timeout as progressbar under titlebar * enable/disable visualized timeout as progressbar under titlebar

View File

@@ -309,7 +309,7 @@ class CMsgBox : public CHintBox
* @param[in] Timeout * @param[in] Timeout
* @li expects type int * @li expects type int
*/ */
void setTimeOut(const int& Timeout){timeout = Timeout;}; void setTimeOut(const int& Timeout) {timeout = Timeout;}
/** /**
* enable/disable defined timeout, otherwise it will be ignored * enable/disable defined timeout, otherwise it will be ignored