Permalink
Browse files

fix Coverity IDs 700811,700812,700813,700814,700815 Uninitialized sca…

…lar fields
  • Loading branch information...
Paul Harrison
Paul Harrison committed Jun 2, 2013
1 parent 5f26b8a commit ee90d664be6258a50fc9efc8d6b860a3dd43d3be
Showing with 6 additions and 6 deletions.
  1. +6 −6 mythtv/libs/libmythfreemheg/BaseClasses.h
@@ -266,12 +266,12 @@ class MHParameter
class MHUnion
{
public:
MHUnion() { m_Type = U_None; }
MHUnion(int nVal) { m_Type = U_Int; m_nIntVal = nVal; }
MHUnion(bool fVal) { m_Type = U_Bool; m_fBoolVal = fVal; }
MHUnion(const MHOctetString &strVal) { m_Type = U_String; m_StrVal.Copy(strVal); }
MHUnion(const MHObjectRef &objVal) { m_Type = U_ObjRef; m_ObjRefVal.Copy(objVal); };
MHUnion(const MHContentRef &cnVal) { m_Type = U_ContentRef; m_ContentRefVal.Copy(cnVal); }
MHUnion() : m_Type(U_None), m_nIntVal(0), m_fBoolVal(false) {}
MHUnion(int nVal) : m_Type(U_Int), m_nIntVal(nVal), m_fBoolVal(false) {}
MHUnion(bool fVal) : m_Type(U_Bool), m_nIntVal(0), m_fBoolVal(fVal) {}
MHUnion(const MHOctetString &strVal) : m_Type(U_String), m_nIntVal(0), m_fBoolVal(false) { m_StrVal.Copy(strVal); }
MHUnion(const MHObjectRef &objVal) : m_Type(U_ObjRef), m_nIntVal(0), m_fBoolVal(false) { m_ObjRefVal.Copy(objVal); };
MHUnion(const MHContentRef &cnVal) : m_Type(U_ContentRef), m_nIntVal(0), m_fBoolVal(false) { m_ContentRefVal.Copy(cnVal); }
void GetValueFrom(const MHParameter &value, MHEngine *engine); // Copies the argument, getting the value of an indirect args.

0 comments on commit ee90d66

Please sign in to comment.