From b1c2a6c8ba1c45d8cd899e4f62dde36819a722e5 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 2 Sep 2024 21:06:01 +0200 Subject: [PATCH] menue.h: Removed 'virtual' keyword from init method in CMenuItem This change resolves -Woverloaded-virtual warnings. Ensured that the init method is resolved at compile time, as the base class version is not intended to be used in derived classes. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/c862f17130ec3e01d33bcc849b9bea0bcadfc9e6 Author: Thilo Graf Date: 2024-09-02 (Mon, 02 Sep 2024) ------------------ This commit was generated by Migit --- src/gui/widget/menue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/menue.h b/src/gui/widget/menue.h index 7a3188e7d..b4bfc9996 100644 --- a/src/gui/widget/menue.h +++ b/src/gui/widget/menue.h @@ -159,7 +159,7 @@ class CMenuItem : public CComponentsSignals used = true; } - virtual void init(const int X, const int Y, const int DX, const int OFFX); + void init(const int X, const int Y, const int DX, const int OFFX); virtual int paint (bool selected = false) = 0; virtual int getHeight(void);