if (EXIF_FORMAT_RATIONAL == entry->format && entry->components >= 1 && entry->data) {
const ExifByteOrder order = exif_data_get_byte_order(exif_data);
return Rational(exif_get_rational(entry->data, order));
- } else {
- return Rational::createInvalid();
}
+ return Rational::createInvalid();
}
bool GetRationalsFromEntry(ExifEntry* entry, ExifData* exif_data, unsigned long required_count,
}
return true;
- } else {
- return false;
}
+ return false;
}
bool GetGCSPositionFromEntry(ExifEntry* entry, ExifData* exif_data, GCSPosition& out_pos) {
out_pos.seconds =
Rational(exif_get_rational(entry->data + 2 * ExifTypeInfo::RationalSize, order));
return true;
- } else {
- return false;
}
+ return false;
}
bool DecomposeExifUndefined(ExifEntry* entry, std::string& type, std::string& value) {