clang-tidy: simplify boolean expression
Found with readability-simplify-boolean-expr Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Luis Díaz Más
parent
5d716c7df4
commit
428c436629
@@ -2061,17 +2061,16 @@ namespace Exiv2 {
|
||||
};
|
||||
|
||||
// If tag, group is one of the image tags listed above -> bingo!
|
||||
if (find(tiffImageTags, TiffImgTagStruct::Key(tag, group))) {
|
||||
#ifdef EXIV2_DEBUG_MESSAGES
|
||||
if (find(tiffImageTags, TiffImgTagStruct::Key(tag, group))) {
|
||||
ExifKey key(tag, groupName(group));
|
||||
std::cerr << "Image tag: " << key << " (3)\n";
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
#ifdef EXIV2_DEBUG_MESSAGES
|
||||
std::cerr << "Not an image tag: " << tag << " (4)\n";
|
||||
#endif
|
||||
return false;
|
||||
#endif
|
||||
return find(tiffImageTags, TiffImgTagStruct::Key(tag, group));
|
||||
}
|
||||
|
||||
TiffHeader::TiffHeader(ByteOrder byteOrder, uint32_t offset, bool hasImageTags)
|
||||
|
||||
Reference in New Issue
Block a user