diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-03-22 14:02:47 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-07-05 13:04:26 +0200 |
commit | 4ba3e07bb3eed9cd261219978b238157af202885 (patch) | |
tree | e5668b1490becfc4df72ecf1ca0637de0df4f6dd | |
parent | 9d04343f62f685e74ed589ca18b2aabef2a61dc9 (diff) | |
download | vdr-plugin-tvguideng-4ba3e07bb3eed9cd261219978b238157af202885.tar.gz vdr-plugin-tvguideng-4ba3e07bb3eed9cd261219978b238157af202885.tar.bz2 |
Some cosmetic changes
-rw-r--r-- | helpers.c | 16 | ||||
-rw-r--r-- | switchtimer.h | 12 |
2 files changed, 14 insertions, 14 deletions
@@ -213,7 +213,7 @@ int FindIgnoreCase(const std::string& expr, const std::string& query) char* GetAuxValue(const char* aux, const char* name) { if (isempty(aux)) return NULL; - + char* descr = strdup(aux); char* beginaux = strstr(descr, "<epgsearch>"); char* endaux = strstr(descr, "</epgsearch>"); @@ -245,7 +245,7 @@ char* GetAuxValue(const char* aux, const char* name) { cat += namelen + 2; char* end = strstr(cat, "</"); if (!end) { - free(descr); + free(descr); return NULL; } end[0] = 0; @@ -286,10 +286,10 @@ ARGUMENTS: kerr Number of possible errors. Shouldn't exceed pattern length UseFilter Use agrep filter algorithm that speeds up search. fuzzy pointer to the structure that will be later passes to Check* - (the first 6 elements should be NULLs for the first call) - + (the first 6 elements should be NULLs for the first call) + RETURN VALUE: - none + none ALGORITHM see. the article on agrep algorithms. @@ -379,7 +379,7 @@ void afuzzy_init(const char *p, int kerr, int UseFilter, AFUZZY *fuzzy) for (i = p_len - fuzzy->k - 1; i <= p_len - 1; i++) /* k+1 times */ fuzzy->filter_ok |= 1 << i; - /* k+1 first bits set to 1 */ + /* k+1 first bits set to 1 */ fuzzy->filter_shift = (1 << (fuzzy->k + 2)) - 1; } } @@ -391,9 +391,9 @@ FUNCTION afuzzy_free() ARGUMENTS: fuzzy pointer to the afuzzy parameters structure - + RETURN VALUE: - none + none ******************************************************************************/ void afuzzy_free(AFUZZY *fuzzy) { diff --git a/switchtimer.h b/switchtimer.h index ba1479a..331bd8c 100644 --- a/switchtimer.h +++ b/switchtimer.h @@ -17,13 +17,13 @@ public: }; cSwitchTimer& operator= (const cSwitchTimer &SwitchTimer) { - this->eventID = SwitchTimer.eventID; - this->startTime = SwitchTimer.startTime; - this->channelID = SwitchTimer.channelID; - this->switchMinsBefore = SwitchTimer.switchMinsBefore; - this->announceOnly = SwitchTimer.announceOnly; + this->eventID = SwitchTimer.eventID; + this->startTime = SwitchTimer.startTime; + this->channelID = SwitchTimer.channelID; + this->switchMinsBefore = SwitchTimer.switchMinsBefore; + this->announceOnly = SwitchTimer.announceOnly; - return *this; + return *this; }; cSwitchTimer(void); cSwitchTimer(const cEvent* Event); |