summaryrefslogtreecommitdiff
path: root/skinnopacity.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-02-16 14:11:41 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-03-10 17:55:55 +0100
commit0ab22a142845707b6832299390a4305c6be6fdcb (patch)
tree05c9e16c2c87d556306687c7d6aa63749c27bd84 /skinnopacity.c
parent3aeafba79e2fc040befd463c1d1b988e9ab9a88d (diff)
downloadskin-nopacity-0ab22a142845707b6832299390a4305c6be6fdcb.tar.gz
skin-nopacity-0ab22a142845707b6832299390a4305c6be6fdcb.tar.bz2
Cleanup optimized Start()
We can return new cNopacity() directly in Start()
Diffstat (limited to 'skinnopacity.c')
-rw-r--r--skinnopacity.c6
1 files changed, 2 insertions, 4 deletions
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) {