clang-tidy: apply to newly merged stuff
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -94,9 +94,9 @@ int main(int argc, char* const argv[]) {
|
||||
if (tagInfo) {
|
||||
Exiv2::TypeId type = i->typeId();
|
||||
if (type != tagInfo->typeId_ &&
|
||||
!(tagInfo->typeId_ == Exiv2::comment && type == Exiv2::undefined) // comment is stored as undefined
|
||||
&& !(shortLong.find(i->key()) != shortLong.end() &&
|
||||
(type == Exiv2::unsignedShort || type == Exiv2::unsignedLong)) // can be short or long!
|
||||
(tagInfo->typeId_ != Exiv2::comment || type != Exiv2::undefined) // comment is stored as undefined
|
||||
&& (shortLong.find(i->key()) == shortLong.end() ||
|
||||
(type != Exiv2::unsignedShort && type != Exiv2::unsignedLong)) // can be short or long!
|
||||
) {
|
||||
std::cerr << i->key() << " type " << i->typeName() << " (" << type << ")"
|
||||
<< " expected " << Exiv2::TypeInfo::typeName(tagInfo->typeId_) << " (" << tagInfo->typeId_ << ")"
|
||||
|
||||
Reference in New Issue
Block a user