Merge pull request #2252 from neheb/2
clang-tidy: use default member init
This commit is contained in:
@@ -735,7 +735,7 @@ class EXIV2API XPathIo : public FileIo {
|
||||
|
||||
private:
|
||||
// True if the file is a temporary file and it should be deleted in destructor.
|
||||
bool isTemp_;
|
||||
bool isTemp_{true};
|
||||
std::string tempFilePath_;
|
||||
}; // class XPathIo
|
||||
#endif
|
||||
|
||||
@@ -467,8 +467,8 @@ class EXIV2API Image {
|
||||
DataBuf iccProfile_; //!< ICC buffer (binary data)
|
||||
std::string comment_; //!< User comment
|
||||
std::string xmpPacket_; //!< XMP packet
|
||||
uint32_t pixelWidth_; //!< image pixel width
|
||||
uint32_t pixelHeight_; //!< image pixel height
|
||||
uint32_t pixelWidth_{0}; //!< image pixel width
|
||||
uint32_t pixelHeight_{0}; //!< image pixel height
|
||||
NativePreviewList nativePreviews_; //!< list of native previews
|
||||
|
||||
//! Return tag name for given tag id.
|
||||
@@ -479,13 +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
|
||||
ByteOrder byteOrder_; //!< Byte order
|
||||
ImageType imageType_; //!< Image type
|
||||
uint16_t supportedMetadata_; //!< Bitmap with all supported metadata types
|
||||
bool writeXmpFromPacket_; //!< Determines the source when writing XMP
|
||||
ByteOrder byteOrder_{invalidByteOrder}; //!< Byte order
|
||||
|
||||
std::map<int, std::string> tags_; //!< Map of tags
|
||||
bool init_; //!< Flag marking if map of tags needs to be initialized
|
||||
bool init_{true}; //!< Flag marking if map of tags needs to be initialized
|
||||
|
||||
}; // class Image
|
||||
|
||||
|
||||
@@ -85,10 +85,10 @@ class EXIV2API TiffImage : public Image {
|
||||
//@}
|
||||
|
||||
// DATA
|
||||
mutable std::string primaryGroup_; //!< The primary group
|
||||
mutable std::string mimeType_; //!< The MIME type
|
||||
mutable uint32_t pixelWidthPrimary_; //!< Width of the primary image in pixels
|
||||
mutable uint32_t pixelHeightPrimary_; //!< Height of the primary image in pixels
|
||||
mutable std::string primaryGroup_; //!< The primary group
|
||||
mutable std::string mimeType_; //!< The MIME type
|
||||
mutable uint32_t pixelWidthPrimary_{0}; //!< Width of the primary image in pixels
|
||||
mutable uint32_t pixelHeightPrimary_{0}; //!< Height of the primary image in pixels
|
||||
|
||||
}; // class TiffImage
|
||||
|
||||
|
||||
@@ -229,7 +229,7 @@ class EXIV2API Value {
|
||||
*/
|
||||
Value& operator=(const Value&) = default;
|
||||
// DATA
|
||||
mutable bool ok_; //!< Indicates the status of the previous to<Type> conversion
|
||||
mutable bool ok_{true}; //!< Indicates the status of the previous to<Type> conversion
|
||||
|
||||
private:
|
||||
//! Internal virtual copy constructor.
|
||||
@@ -648,8 +648,8 @@ class EXIV2API XmpValue : public Value {
|
||||
|
||||
private:
|
||||
// DATA
|
||||
XmpArrayType xmpArrayType_; //!< Type of XMP array
|
||||
XmpStruct xmpStruct_; //!< XMP structure indicator
|
||||
XmpArrayType xmpArrayType_{xaNone}; //!< Type of XMP array
|
||||
XmpStruct xmpStruct_{xsNone}; //!< XMP structure indicator
|
||||
|
||||
}; // class XmpValue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user