Make conditional expressions explicitly boolean

This commit is contained in:
Mike Gelfand
2017-04-30 19:25:26 +03:00
parent 6da99c05e2
commit a762c770f2
108 changed files with 1473 additions and 1479 deletions

View File

@@ -47,7 +47,7 @@ int AddData::set(QString const& key)
size_t len;
void* raw = tr_base64_decode(key.toUtf8().constData(), key.toUtf8().size(), &len);
if (raw)
if (raw != nullptr)
{
metainfo.append(static_cast<char const*>(raw), int(len));
tr_free(raw);