summaryrefslogtreecommitdiff
path: root/plugins/YAMN/src/mails/decode.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-16 14:23:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-16 14:23:01 +0000
commita67927ff45a5e88a62c33b48f3643ebf5dd69394 (patch)
treef0e82e8c9b990dfa99b8b2c433aba7aeb8f06fbe /plugins/YAMN/src/mails/decode.cpp
parentddac55403efc2fa4de7ad484a057bd96c24335c5 (diff)
type conversion warnings fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@11462 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAMN/src/mails/decode.cpp')
-rw-r--r--plugins/YAMN/src/mails/decode.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/YAMN/src/mails/decode.cpp b/plugins/YAMN/src/mails/decode.cpp
index f87658547e..64bbc47ad1 100644
--- a/plugins/YAMN/src/mails/decode.cpp
+++ b/plugins/YAMN/src/mails/decode.cpp
@@ -221,7 +221,7 @@ int GetCharsetFromString(char *input,size_t size)
*parser++=*pin++;
}
- *parser=(char)0;
+ *parser = 0;
#ifdef DEBUG_DECODECODEPAGE
DebugLog(DecodeFile,"<CodePage>%s</CodePage>",pout);
@@ -300,7 +300,7 @@ int DecodeQuotedPrintable(char *Src,char *Dst,int DstLen, BOOL isQ)
char *DstTemp=Dst;
DebugLog(DecodeFile,"<Decode Quoted><Input>%s</Input>",Src);
#endif
- for (int Counter=0;((char)*Src != 0) && DstLen && (Counter++<DstLen);Src++,Dst++)
+ for (int Counter=0;(*Src != 0) && DstLen && (Counter++<DstLen);Src++,Dst++)
if (*Src=='=')
{
if (!isQ) {
@@ -333,7 +333,7 @@ int DecodeQuotedPrintable(char *Src,char *Dst,int DstLen, BOOL isQ)
else
CopyCharQuotedPrintable: // Yeah. Bad programming stile.
*Dst=*Src;
- *Dst=(char)0;
+ *Dst=0;
#ifdef DEBUG_DECODEQUOTED
DebugLog(DecodeFile,"<Output>%s</Output></Decode Quoted>",DstTemp);
#endif
@@ -494,8 +494,7 @@ void ConvertCodedStringToUnicode(char *stream,WCHAR **storeto,DWORD cp,int mode)
finder++;
finderend--;
}
- //*finderend=(char)0;
- char * oneWordEncoded = new char[finderend-finder+1];
+ char *oneWordEncoded = new char[finderend-finder+1];
strncpy(oneWordEncoded,finder,finderend-finder);
oneWordEncoded[finderend-finder]=0;
switch(Encoding)