#686: Removed const-qualifier to make things comply with the C++ standard.

v0.27.3
Andreas Huggel 15 years ago
parent a3b24b3615
commit b68ecc7cb0

@ -705,8 +705,8 @@ namespace Exiv2 {
} }
// IPTC and XMP are stored elsewhere, not in the Exif APP1 segment. // IPTC and XMP are stored elsewhere, not in the Exif APP1 segment.
const IptcData emptyIptc; IptcData emptyIptc;
const XmpData emptyXmp; XmpData emptyXmp;
// Encode and check if the result fits into a JPEG Exif APP1 segment // Encode and check if the result fits into a JPEG Exif APP1 segment
MemIo mio1; MemIo mio1;
@ -891,8 +891,8 @@ namespace {
} }
Exiv2::MemIo io; Exiv2::MemIo io;
const Exiv2::IptcData emptyIptc; Exiv2::IptcData emptyIptc;
const Exiv2::XmpData emptyXmp; Exiv2::XmpData emptyXmp;
Exiv2::TiffParser::encode(io, 0, 0, Exiv2::littleEndian, thumb, emptyIptc, emptyXmp); Exiv2::TiffParser::encode(io, 0, 0, Exiv2::littleEndian, thumb, emptyIptc, emptyXmp);
return io.read(io.size()); return io.read(io.size());
} }

@ -647,8 +647,8 @@ namespace {
// write new image // write new image
MemIo mio; MemIo mio;
const IptcData emptyIptc; IptcData emptyIptc;
const XmpData emptyXmp; XmpData emptyXmp;
TiffParser::encode(mio, 0, 0, Exiv2::littleEndian, preview, emptyIptc, emptyXmp); TiffParser::encode(mio, 0, 0, Exiv2::littleEndian, preview, emptyIptc, emptyXmp);
return DataBuf(mio.mmap(), mio.size()); return DataBuf(mio.mmap(), mio.size());
} }

Loading…
Cancel
Save