clang-tidy: don't use C casts
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
89e66ffd37
commit
b8304fffa4
@ -1541,7 +1541,7 @@ namespace {
|
||||
bool ret = true;
|
||||
iconv_t cd;
|
||||
cd = iconv_open(to, from);
|
||||
if (cd == (iconv_t)(-1)) {
|
||||
if (!cd) {
|
||||
#ifndef SUPPRESS_WARNINGS
|
||||
EXV_WARNING << "iconv_open: " << strError() << "\n";
|
||||
#endif
|
||||
@ -1570,7 +1570,7 @@ namespace {
|
||||
}
|
||||
outstr.append(std::string(outbuf, outbytesProduced));
|
||||
}
|
||||
if (cd != (iconv_t)(-1)) {
|
||||
if (cd) {
|
||||
iconv_close(cd);
|
||||
}
|
||||
|
||||
|
||||
@ -1059,7 +1059,7 @@ namespace Exiv2 {
|
||||
pad[0] = static_cast<uint8_t>(chunk + 1);
|
||||
pad[1] = static_cast<uint8_t>(chunks);
|
||||
outIo.write(reinterpret_cast<const byte*>(iccId_), 12);
|
||||
outIo.write((const byte*)pad, 2);
|
||||
outIo.write(reinterpret_cast<const byte*>(pad), 2);
|
||||
if (outIo.write(iccProfile_.c_data(chunk * chunk_size), bytes) != bytes)
|
||||
throw Error(kerImageWriteFailed);
|
||||
if (outIo.error())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user