From 0ab22a142845707b6832299390a4305c6be6fdcb Mon Sep 17 00:00:00 2001 From: kamel5 Date: Tue, 16 Feb 2021 14:11:41 +0100 Subject: Cleanup optimized Start() We can return new cNopacity() directly in Start() --- skinnopacity.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'skinnopacity.c') diff --git a/skinnopacity.c b/skinnopacity.c index 4936085..022fdd2 100644 --- a/skinnopacity.c +++ b/skinnopacity.c @@ -23,7 +23,7 @@ static const char *MAINMENUENTRY = "nOpacity"; class cPluginNopacity : public cPlugin { private: - cNopacity *nopacity; + // Add any member variables or functions you may need here. public: cPluginNopacity(void); virtual ~cPluginNopacity(); @@ -49,7 +49,6 @@ public: cPluginNopacity::cPluginNopacity(void) { - nopacity = NULL; } cPluginNopacity::~cPluginNopacity() @@ -107,8 +106,7 @@ bool cPluginNopacity::Start(void) { } else dsyslog("nopacity: TrueColor OSD found"); - nopacity = new cNopacity(); - return nopacity; + return new cNopacity(); } void cPluginNopacity::Stop(void) { -- cgit v1.2.3