get rid of C style casts

This commit is contained in:
Andrzej Rybczak
2009-05-21 23:51:56 +02:00
parent 7eb74a6da2
commit ecd4c8cc17
8 changed files with 18 additions and 18 deletions

View File

@@ -62,7 +62,7 @@ namespace
iconv_t cd = iconv_open(to, from);
if (cd == (iconv_t)-1)
if (cd == iconv_t(-1))
return;
if (!len)
@@ -72,7 +72,7 @@ namespace
char *outstart = outbuf;
char *instart = inbuf;
if (iconv(cd, const_cast<ICONV_CONST char **>(&inbuf), &len, &outbuf, &buflen) == (size_t)-1)
if (iconv(cd, const_cast<ICONV_CONST char **>(&inbuf), &len, &outbuf, &buflen) == size_t(-1))
{
delete [] outstart;
iconv_close(cd);