From 018a8946b7bf5aa7d05702bcf62a2c3b3a3789b9 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sun, 10 Nov 2019 13:45:48 +0100 Subject: [PATCH] Rename GetEventValue() to GetEvent() --- recmenuitem.h | 4 ++-- recmenus.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/recmenuitem.h b/recmenuitem.h index 4af307a..9e0c877 100644 --- a/recmenuitem.h +++ b/recmenuitem.h @@ -122,7 +122,7 @@ public: virtual time_t GetTimeValue(void) { return 0; }; virtual bool GetBoolValue(void) { return false; }; virtual cString GetStringValue(void) { return cString(""); }; - virtual const cEvent *GetEventValue(void) { return NULL; }; + virtual const cEvent *GetEvent(void) { return NULL; }; virtual const cTimer *GetTimerValue(void) { return NULL; }; virtual eRecMenuState ProcessKey(eKeys Key) { return rmsNotConsumed; }; }; @@ -487,7 +487,7 @@ public: void SetPixmaps(void); void Hide(void); void Show(void); - const cEvent *GetEventValue(void) { return event; }; + const cEvent *GetEvent(void) { return event; }; eRecMenuState ProcessKey(eKeys Key); void Draw(void); }; diff --git a/recmenus.c b/recmenus.c index 318e7cc..b66f7ff 100644 --- a/recmenus.c +++ b/recmenus.c @@ -362,7 +362,7 @@ int cRecMenuRerunResults::GetTotalNumMenuItems(void) { const cEvent *cRecMenuRerunResults::GetRerunEvent(void) { if (cRecMenuItemEvent *activeItem = dynamic_cast(GetActiveMenuItem())) - return activeItem->GetEventValue(); + return activeItem->GetEvent(); return NULL; } @@ -1067,7 +1067,7 @@ int cRecMenuSearchTimerResults::GetTotalNumMenuItems(void) { const cEvent *cRecMenuSearchTimerResults::GetEvent(void) { if (cRecMenuItemEvent *activeItem = dynamic_cast(GetActiveMenuItem())) - return activeItem->GetEventValue(); + return activeItem->GetEvent(); return NULL; } @@ -1241,7 +1241,7 @@ int cRecMenuSearchResults::GetTotalNumMenuItems(void) { const cEvent *cRecMenuSearchResults::GetEvent(void) { if (cRecMenuItemEvent *activeItem = dynamic_cast(GetActiveMenuItem())) - return activeItem->GetEventValue(); + return activeItem->GetEvent(); return NULL; }