Commit fixes found in porting.
[asdcplib.git] / src / KLV.h
index ba291b6170a6c7f0a169d53b945fb31326dfefa5..d685cf974a9aabe159c9a051409b3fc9f583f3da 100755 (executable)
--- a/src/KLV.h
+++ b/src/KLV.h
@@ -102,12 +102,6 @@ inline const char* ui64sz(ui64_t i, char* buf)
       UL(const byte_t* value) : Kumu::Identifier<SMPTE_UL_LENGTH>(value) {}
       virtual ~UL() {}
 
-      const UL& operator=(const UL& rhs) {
-       if ( m_HasValue = rhs.m_HasValue )
-         memcpy(m_Value, rhs.m_Value, SMPTE_UL_LENGTH);
-       return *this;
-      }
-
       const char* EncodeString(char* str_buf, ui32_t buf_len) const;
     };
 
@@ -120,17 +114,13 @@ inline const char* ui64sz(ui64_t i, char* buf)
       UMID(const byte_t* value) : Kumu::Identifier<SMPTE_UMID_LENGTH>(value) {}
       virtual ~UMID() {}
 
-      const UMID& operator=(const UMID& rhs) {
-       if ( m_HasValue = rhs.m_HasValue )
-         memcpy(m_Value, rhs.m_Value, SMPTE_UMID_LENGTH);
-       return *this;
-      }
-
       void MakeUMID(int Type);
       void MakeUMID(int Type, const UUID& ID);
       const char* EncodeString(char* str_buf, ui32_t buf_len) const;
     };
 
+  const byte_t nil_UMID[SMPTE_UMID_LENGTH] = {0};
+  const UMID NilUMID(nil_UMID);
 
   //
   struct MDDEntry