diff options
author | Dimitar Petrovski <dimeptr@gmail.com> | 2012-05-09 13:49:46 +0200 |
---|---|---|
committer | Dimitar Petrovski <dimeptr@gmail.com> | 2012-05-09 13:49:46 +0200 |
commit | 9bb23fd7bd0e651fa4e4902e7033ced95e18d373 (patch) | |
tree | 365fd6326c700992aed65ae42bcc7c1af8498e17 | |
parent | d91b6baad0e8f377254fdc67780602d03e745433 (diff) | |
download | vdr-plugin-eepg-9bb23fd7bd0e651fa4e4902e7033ced95e18d373.tar.gz vdr-plugin-eepg-9bb23fd7bd0e651fa4e4902e7033ced95e18d373.tar.bz2 |
changes in cSetupEEPG
-rw-r--r-- | eepg.c | 2 | ||||
-rw-r--r-- | log.h | 2 | ||||
-rw-r--r-- | setupeepg.c | 3 | ||||
-rw-r--r-- | setupeepg.h | 4 |
4 files changed, 8 insertions, 3 deletions
@@ -119,7 +119,7 @@ public: cMenuSetupPremiereEpg::cMenuSetupPremiereEpg (void) { - data = SetupPE; + data = *cSetupEEPG::getInstance(); SetSection (tr ("PremiereEPG")); optDisp[0] = tr ("off"); for (unsigned int i = 1; i < NUM_PATS; i++) { @@ -20,7 +20,7 @@ bool CheckLevel(int level) { #ifdef DEBUG - if (cSetupEEPG::getInstance().LogLevel >= level) + if (cSetupEEPG::getInstance()->LogLevel >= level) #else if (VERBOSE >= level) #endif diff --git a/setupeepg.c b/setupeepg.c index 4c6693d..4d9471e 100644 --- a/setupeepg.c +++ b/setupeepg.c @@ -5,10 +5,13 @@ * Author: d.petrovski */ +#include <stddef.h> #include "setupeepg.h" // --- cSetupEEPG ------------------------------------------------------- +cSetupEEPG* cSetupEEPG::_setupEEPG = NULL; + cSetupEEPG::cSetupEEPG (void) { OptPat = 1; diff --git a/setupeepg.h b/setupeepg.h index 7441223..ef1ad2a 100644 --- a/setupeepg.h +++ b/setupeepg.h @@ -26,7 +26,9 @@ public: private: cSetupEEPG (void); - cSetupEEPG* _setupEEPG; + cSetupEEPG(cSetupEEPG const&){}; // copy constructor is private + cSetupEEPG& operator=(cSetupEEPG const&){}; // assignment operator is private + static cSetupEEPG* _setupEEPG; }; |