From f0ff6972eb5fecda4218fcea6686194f1b52e704 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 23 Jun 2013 12:32:34 +0000 Subject: various warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@5095 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Non-IM Contact/src/namereplacing.cpp | 102 +++++++++++++-------------- 1 file changed, 51 insertions(+), 51 deletions(-) (limited to 'plugins/Non-IM Contact/src/namereplacing.cpp') diff --git a/plugins/Non-IM Contact/src/namereplacing.cpp b/plugins/Non-IM Contact/src/namereplacing.cpp index 622126ff64..757a55f0b9 100644 --- a/plugins/Non-IM Contact/src/namereplacing.cpp +++ b/plugins/Non-IM Contact/src/namereplacing.cpp @@ -53,11 +53,11 @@ int findWordInString(const char* line, const char* string, int* lengthOfWord, in } } i=0; - *lengthOfWord = strlen(word)+strlen(CloseDivider)+strlen(OpenDivider); + *lengthOfWord = (int)(strlen(word)+strlen(CloseDivider)+strlen(OpenDivider)); /* find the word in the line */ while (i < (strlen(line) - strlen(word))) { if (!strncmp(&line[i], word, strlen(word))) { - if (!flag) return i + strlen(word); /* the next char after the word */ + if (!flag) return i + (int)strlen(word); /* the next char after the word */ else return i; /* the char before the word */ } i++; @@ -76,16 +76,16 @@ int findLine(char* FileContents[], const char* string, int linesInFile,int start // check if its a number if (i != -1) { - *positionInOldString += strlen(_itoa(i,tmp,10)) - 1; + *positionInOldString += (int)strlen(_itoa(i,tmp,10)) - 1; return i; } // lastline if (!strncmp(&string[*positionInOldString], Translate("lastline("), strlen(Translate("lastline(")))) { - *positionInOldString += strlen(Translate("lastline(")); + *positionInOldString += (int)strlen(Translate("lastline(")); i = getNumber(&string[*positionInOldString]); if ( i != -1) { - *positionInOldString += strlen(_itoa(i,tmp,10)); + *positionInOldString += (int)strlen(_itoa(i,tmp,10)); return linesInFile - (i+1); } @@ -111,14 +111,14 @@ int findLine(char* FileContents[], const char* string, int linesInFile,int start } i = -1; } - *positionInOldString += strlen(string2Find) + strlen(Translate("\"\")")); + *positionInOldString += (int)(strlen(string2Find) + strlen(Translate("\"\")"))); if (i==-1) return i; // allow for a +- after the word to go up or down lines if (string[*positionInOldString] == '+') { *positionInOldString += 1; j = getNumber(&string[*positionInOldString]); if (j != -1) { - *positionInOldString += strlen(_itoa(j,tmp,10))-2; + *positionInOldString += (int)strlen(_itoa(j,tmp,10))-2; return i+j; } } @@ -126,7 +126,7 @@ int findLine(char* FileContents[], const char* string, int linesInFile,int start *positionInOldString+=1; j = getNumber(&string[*positionInOldString]); if (j != -1) { - *positionInOldString += strlen(_itoa(j,tmp,10))-2; + *positionInOldString += (int)strlen(_itoa(j,tmp,10))-2; return i-j; } } @@ -144,7 +144,7 @@ int findChar(char* FileContents[], const char* string, int linesInFile,int start int i = getNumber(&string[*positionInOldString]); // check if its a number if (i != -1) { - *positionInOldString += strlen(_itoa(i,tmp,10)) - 1; + *positionInOldString += (int)strlen(_itoa(i,tmp,10)) - 1; return i; } @@ -165,15 +165,15 @@ int findChar(char* FileContents[], const char* string, int linesInFile,int start if (j==strlen(FileContents[startLine])) return -1; - *positionInOldString += strlen(string2Find)+1; - return (startEnd) ? j : j+strlen(string2Find); + *positionInOldString += (int)strlen(string2Find)+1; + return (startEnd) ? j : j + (int)strlen(string2Find); } // csv( if (!strncmp(&string[*positionInOldString], Translate("csv("), strlen(Translate("csv(")))) { char seperator; int j=0, k=startChar; - *positionInOldString += strlen(Translate("csv(")); + *positionInOldString += (int)strlen(Translate("csv(")); if (!strncmp(&string[*positionInOldString], "tab", 3)) { *positionInOldString += 3; seperator = '\t'; @@ -188,8 +188,8 @@ int findChar(char* FileContents[], const char* string, int linesInFile,int start } i = getNumber(&string[*positionInOldString]); if ( i == -1) return -1; - *positionInOldString += strlen(_itoa(i,tmp,10)); - while (j