manual default member init
clang-tidy suggests this but fails to apply it. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
a84df11bbb
commit
3e97850e97
@ -479,9 +479,13 @@ class EXIV2API Image {
|
||||
|
||||
private:
|
||||
// DATA
|
||||
ImageType imageType_; //!< Image type
|
||||
uint16_t supportedMetadata_; //!< Bitmap with all supported metadata types
|
||||
bool writeXmpFromPacket_; //!< Determines the source when writing XMP
|
||||
ImageType imageType_; //!< Image type
|
||||
uint16_t supportedMetadata_; //!< Bitmap with all supported metadata types
|
||||
#ifdef EXV_HAVE_XMP_TOOLKIT
|
||||
bool writeXmpFromPacket_{false}; //!< Determines the source when writing XMP
|
||||
#else
|
||||
bool writeXmpFromPacket_{true}; //!< Determines the source when writing XMP
|
||||
#endif
|
||||
ByteOrder byteOrder_{invalidByteOrder}; //!< Byte order
|
||||
|
||||
std::map<int, std::string> tags_; //!< Map of tags
|
||||
|
||||
@ -128,14 +128,7 @@ std::string pathOfFileUrl(const std::string& url) {
|
||||
// class member definitions
|
||||
namespace Exiv2 {
|
||||
Image::Image(ImageType type, uint16_t supportedMetadata, BasicIo::UniquePtr io) :
|
||||
io_(std::move(io)),
|
||||
imageType_(type),
|
||||
supportedMetadata_(supportedMetadata),
|
||||
#ifdef EXV_HAVE_XMP_TOOLKIT
|
||||
writeXmpFromPacket_(false) {
|
||||
#else
|
||||
writeXmpFromPacket_(true) {
|
||||
#endif
|
||||
io_(std::move(io)), imageType_(type), supportedMetadata_(supportedMetadata) {
|
||||
}
|
||||
|
||||
void Image::printStructure(std::ostream&, PrintStructureOption, size_t /*depth*/) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user