std::array removals
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
8fe2ae6030
commit
05f2731d34
@ -21,10 +21,10 @@
|
|||||||
|
|
||||||
namespace Exiv2 {
|
namespace Exiv2 {
|
||||||
constexpr auto familyName_ = "Iptc";
|
constexpr auto familyName_ = "Iptc";
|
||||||
constexpr auto recordInfo_ = std::array{
|
constexpr RecordInfo recordInfo_[] = {
|
||||||
RecordInfo{IptcDataSets::invalidRecord, "(invalid)", N_("(invalid)")},
|
{IptcDataSets::invalidRecord, "(invalid)", N_("(invalid)")},
|
||||||
RecordInfo{IptcDataSets::envelope, "Envelope", N_("IIM envelope record")},
|
{IptcDataSets::envelope, "Envelope", N_("IIM envelope record")},
|
||||||
RecordInfo{IptcDataSets::application2, "Application2", N_("IIM application record 2")},
|
{IptcDataSets::application2, "Application2", N_("IIM application record 2")},
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr DataSet envelopeRecord[] = {
|
constexpr DataSet envelopeRecord[] = {
|
||||||
|
|||||||
46
src/tags.cpp
46
src/tags.cpp
@ -19,29 +19,29 @@ namespace Exiv2 {
|
|||||||
using namespace Internal;
|
using namespace Internal;
|
||||||
|
|
||||||
//! List of all defined Exif sections.
|
//! List of all defined Exif sections.
|
||||||
constexpr auto sectionInfo = std::array{
|
constexpr SectionInfo sectionInfo[] = {
|
||||||
SectionInfo{SectionId::sectionIdNotSet, "(UnknownSection)", N_("Unknown section")},
|
{SectionId::sectionIdNotSet, "(UnknownSection)", N_("Unknown section")},
|
||||||
SectionInfo{SectionId::imgStruct, "ImageStructure", N_("Image data structure")},
|
{SectionId::imgStruct, "ImageStructure", N_("Image data structure")},
|
||||||
SectionInfo{SectionId::recOffset, "RecordingOffset", N_("Recording offset")},
|
{SectionId::recOffset, "RecordingOffset", N_("Recording offset")},
|
||||||
SectionInfo{SectionId::imgCharacter, "ImageCharacteristics", N_("Image data characteristics")},
|
{SectionId::imgCharacter, "ImageCharacteristics", N_("Image data characteristics")},
|
||||||
SectionInfo{SectionId::otherTags, "OtherTags", N_("Other data")},
|
{SectionId::otherTags, "OtherTags", N_("Other data")},
|
||||||
SectionInfo{SectionId::exifFormat, "ExifFormat", N_("Exif data structure")},
|
{SectionId::exifFormat, "ExifFormat", N_("Exif data structure")},
|
||||||
SectionInfo{SectionId::exifVersion, "ExifVersion", N_("Exif version")},
|
{SectionId::exifVersion, "ExifVersion", N_("Exif version")},
|
||||||
SectionInfo{SectionId::imgConfig, "ImageConfig", N_("Image configuration")},
|
{SectionId::imgConfig, "ImageConfig", N_("Image configuration")},
|
||||||
SectionInfo{SectionId::userInfo, "UserInfo", N_("User information")},
|
{SectionId::userInfo, "UserInfo", N_("User information")},
|
||||||
SectionInfo{SectionId::relatedFile, "RelatedFile", N_("Related file")},
|
{SectionId::relatedFile, "RelatedFile", N_("Related file")},
|
||||||
SectionInfo{SectionId::dateTime, "DateTime", N_("Date and time")},
|
{SectionId::dateTime, "DateTime", N_("Date and time")},
|
||||||
SectionInfo{SectionId::captureCond, "CaptureConditions", N_("Picture taking conditions")},
|
{SectionId::captureCond, "CaptureConditions", N_("Picture taking conditions")},
|
||||||
SectionInfo{SectionId::gpsTags, "GPS", N_("GPS information")},
|
{SectionId::gpsTags, "GPS", N_("GPS information")},
|
||||||
SectionInfo{SectionId::iopTags, "Interoperability", N_("Interoperability information")},
|
{SectionId::iopTags, "Interoperability", N_("Interoperability information")},
|
||||||
SectionInfo{SectionId::mpfTags, "MPF", N_("CIPA Multi-Picture Format")},
|
{SectionId::mpfTags, "MPF", N_("CIPA Multi-Picture Format")},
|
||||||
SectionInfo{SectionId::makerTags, "Makernote", N_("Vendor specific information")},
|
{SectionId::makerTags, "Makernote", N_("Vendor specific information")},
|
||||||
SectionInfo{SectionId::dngTags, "DngTags", N_("Adobe DNG tags")},
|
{SectionId::dngTags, "DngTags", N_("Adobe DNG tags")},
|
||||||
SectionInfo{SectionId::panaRaw, "PanasonicRaw", N_("Panasonic RAW tags")},
|
{SectionId::panaRaw, "PanasonicRaw", N_("Panasonic RAW tags")},
|
||||||
SectionInfo{SectionId::tiffEp, "TIFF/EP", N_("TIFF/EP tags")},
|
{SectionId::tiffEp, "TIFF/EP", N_("TIFF/EP tags")},
|
||||||
SectionInfo{SectionId::tiffPm6, "TIFF&PM6", N_("TIFF PageMaker 6.0 tags")},
|
{SectionId::tiffPm6, "TIFF&PM6", N_("TIFF PageMaker 6.0 tags")},
|
||||||
SectionInfo{SectionId::adobeOpi, "AdobeOPI", N_("Adobe OPI tags")},
|
{SectionId::adobeOpi, "AdobeOPI", N_("Adobe OPI tags")},
|
||||||
SectionInfo{SectionId::lastSectionId, "(LastSection)", N_("Last section")},
|
{SectionId::lastSectionId, "(LastSection)", N_("Last section")},
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Exiv2
|
} // namespace Exiv2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user