mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
fixed some compiler warnings
This commit is contained in:
@@ -254,7 +254,7 @@ void cConditionalParameter::Tokenize(void) {
|
||||
}
|
||||
}
|
||||
|
||||
bool cConditionalParameter::Evaluate(map < string, int > *intTokens, map < string, string > *stringTokens) {
|
||||
void cConditionalParameter::Evaluate(map < string, int > *intTokens, map < string, string > *stringTokens) {
|
||||
isTrue = false;
|
||||
bool first = true;
|
||||
for (vector<sCondition>::iterator cond = conditions.begin(); cond != conditions.end(); cond++) {
|
||||
|
||||
@@ -134,7 +134,7 @@ public:
|
||||
cConditionalParameter(cGlobals *globals, string value);
|
||||
virtual ~cConditionalParameter(void);
|
||||
void Tokenize(void);
|
||||
bool Evaluate(map < string, int > *intTokens, map < string, string > *stringTokens);
|
||||
void Evaluate(map < string, int > *intTokens, map < string, string > *stringTokens);
|
||||
bool IsTrue(void) { return isTrue; };
|
||||
void Debug(void);
|
||||
};
|
||||
|
||||
@@ -316,6 +316,8 @@ bool cTemplateFunction::ReCalculateParameters(void) {
|
||||
case ptRowHeight:
|
||||
SetNumericParameter(type, value);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (!paramValid) {
|
||||
paramsValid = false;
|
||||
@@ -1356,7 +1358,7 @@ int cTemplateFunction::CalculateTextBoxHeight(void) {
|
||||
stringstream sstrTextTall;
|
||||
stringstream sstrTextFull;
|
||||
|
||||
for (int i=0; i<flds.size(); i++) {
|
||||
for (int i=0; i < (int)flds.size(); i++) {
|
||||
if (!flds[i].size()) {
|
||||
//empty line
|
||||
linesDrawn++;
|
||||
|
||||
@@ -189,7 +189,6 @@ void cTemplatePixmap::ParseDynamicFunctionParameters(map <string,string> *string
|
||||
InitIterator();
|
||||
cTemplateFunction *func = NULL;
|
||||
bool completelyParsed = true;
|
||||
bool updated = false;
|
||||
while(func = GetNextFunction()) {
|
||||
func->SetStringTokens(stringTokens);
|
||||
func->SetIntTokens(intTokens);
|
||||
@@ -340,7 +339,6 @@ cTemplateFunction *cTemplatePixmap::GetScrollFunction(void) {
|
||||
return NULL;
|
||||
InitIterator();
|
||||
cTemplateFunction *f = NULL;
|
||||
bool foundElement = false;
|
||||
while (f = GetNextFunction()) {
|
||||
string funcName = f->GetParameter(ptName);
|
||||
if (!funcName.compare(scrollElement)) {
|
||||
|
||||
@@ -115,7 +115,6 @@ cFont *cTemplateViewList::GetTextAreaFont(void) {
|
||||
if (!listElement)
|
||||
return NULL;
|
||||
|
||||
int fontWidth = 0;
|
||||
int numItems = GetNumericParameter(ptNumElements);
|
||||
int listHeight = GetNumericParameter(ptHeight);
|
||||
if (listHeight <= 0)
|
||||
|
||||
Reference in New Issue
Block a user