summaryrefslogtreecommitdiff
path: root/XMPFiles/source/FormatSupport/ReconcileIPTC.cpp
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2022-02-14 10:38:48 -0500
committerHubert Figuière <hub@figuiere.net>2022-02-14 10:38:48 -0500
commit9ab742ccca92a6c65133cd28aee4764ba7fcf12a (patch)
treea00648bf8872e0be1aa3b821ac4a82994b29a820 /XMPFiles/source/FormatSupport/ReconcileIPTC.cpp
parent0ac0675dcd41cf44dfee36216e032bcc46cfd9f3 (diff)
Fix several -Wclass-memaccess warnings
- XmpDate and BoxInfo have constructors
Diffstat (limited to 'XMPFiles/source/FormatSupport/ReconcileIPTC.cpp')
-rw-r--r--XMPFiles/source/FormatSupport/ReconcileIPTC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/XMPFiles/source/FormatSupport/ReconcileIPTC.cpp b/XMPFiles/source/FormatSupport/ReconcileIPTC.cpp
index bf797d5..5bead01 100644
--- a/XMPFiles/source/FormatSupport/ReconcileIPTC.cpp
+++ b/XMPFiles/source/FormatSupport/ReconcileIPTC.cpp
@@ -197,7 +197,8 @@ void PhotoDataUtils::ImportIPTC_Date ( XMP_Uns8 dateID, const IPTC_Manager & ipt
size_t chPos, digits;
XMP_DateTime xmpDate;
- memset ( &xmpDate, 0, sizeof(xmpDate) );
+ // (Exempi) unsafe. Constructor is already called
+ //memset ( &xmpDate, 0, sizeof(xmpDate) );
chPos = 0;
for ( digits = 0; digits < 4; ++digits, ++chPos ) {