From 085e3643369c3791422645e0e5a44ad63ca853ac Mon Sep 17 00:00:00 2001 From: cas Date: Fri, 5 Nov 1999 18:28:10 +0000 Subject: [PATCH] No comments --- src/MS/MS.cxx | 2 +- src/MS/MS_Field.cxx | 2 +- src/MS/MS_InstClass.cxx | 8 ++++---- src/MS/MS_InstMet.cxx | 2 +- src/MS/MS_MetaSchema.cxx | 6 +++--- src/MS/MS_Method.cxx | 2 +- src/MS/MS_Param.cxx | 2 +- src/MS/MS_ParamWithValue.cxx | 2 +- src/MS/MS_StdClass.cxx | 5 +++-- 9 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/MS/MS.cxx b/src/MS/MS.cxx index 188f9f8..c37c14d 100755 --- a/src/MS/MS.cxx +++ b/src/MS/MS.cxx @@ -67,7 +67,7 @@ Handle(TCollection_HAsciiString) MS::BuildComplexName(const Handle(TCollection_H const Handle(TCollection_HAsciiString)& aGEName, const Handle(TCollection_HAsciiString)& aName) { - Standard_Integer Locate,Length; + Standard_Integer Locate, Length = 0; Handle(TCollection_HAsciiString) theComplexName = new TCollection_HAsciiString(aGEName); theComplexName = new TCollection_HAsciiString(aGEName); diff --git a/src/MS/MS_Field.cxx b/src/MS/MS_Field.cxx index 6020c90..76fb4e8 100755 --- a/src/MS/MS_Field.cxx +++ b/src/MS/MS_Field.cxx @@ -3,7 +3,7 @@ #include MS_Field::MS_Field(const Handle(MS_Class)& aClass, - const Handle(TCollection_HAsciiString)& aName) : myClass(aClass->FullName()),myDimension(new TColStd_HSequenceOfInteger),myProtected(Standard_False),MS_Common(aName) + const Handle(TCollection_HAsciiString)& aName) : MS_Common(aName), myClass(aClass->FullName()),myDimension(new TColStd_HSequenceOfInteger),myProtected(Standard_False) { } diff --git a/src/MS/MS_InstClass.cxx b/src/MS/MS_InstClass.cxx index 0e0ab09..daa43ef 100755 --- a/src/MS/MS_InstClass.cxx +++ b/src/MS/MS_InstClass.cxx @@ -10,9 +10,9 @@ MS_InstClass::MS_InstClass(const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aPackage) -: myGenClass(new TCollection_HAsciiString),myBasicInsType(new TColStd_HSequenceOfHAsciiString),myInstType(new TColStd_HSequenceOfHAsciiString), +: MS_Class(aName,aPackage), myGenClass(new TCollection_HAsciiString),myBasicInsType(new TColStd_HSequenceOfHAsciiString),myInstType(new TColStd_HSequenceOfHAsciiString), myGenType(new TColStd_HSequenceOfHAsciiString),myNestStd(new TColStd_HSequenceOfHAsciiString), - myNestIns(new TColStd_HSequenceOfHAsciiString),myNestNeu(new TColStd_HSequenceOfHAsciiString),myInstFlag(Standard_False),MS_Class(aName,aPackage) + myNestIns(new TColStd_HSequenceOfHAsciiString),myNestNeu(new TColStd_HSequenceOfHAsciiString),myInstFlag(Standard_False) { } @@ -22,9 +22,9 @@ MS_InstClass::MS_InstClass(const Handle(TCollection_HAsciiString)& aName, const Standard_Boolean aPrivate, const Standard_Boolean aDeferred, const Standard_Boolean aInComplete) -: myGenClass(new TCollection_HAsciiString),myBasicInsType(new TColStd_HSequenceOfHAsciiString),myInstType(new TColStd_HSequenceOfHAsciiString), +: MS_Class(aName,aPackage,Mother,aPrivate,aDeferred,aInComplete), myGenClass(new TCollection_HAsciiString),myBasicInsType(new TColStd_HSequenceOfHAsciiString),myInstType(new TColStd_HSequenceOfHAsciiString), myGenType(new TColStd_HSequenceOfHAsciiString),myNestStd(new TColStd_HSequenceOfHAsciiString), - myNestIns(new TColStd_HSequenceOfHAsciiString),myNestNeu(new TColStd_HSequenceOfHAsciiString),myInstFlag(Standard_False),MS_Class(aName,aPackage,Mother,aPrivate,aDeferred,aInComplete) + myNestIns(new TColStd_HSequenceOfHAsciiString),myNestNeu(new TColStd_HSequenceOfHAsciiString),myInstFlag(Standard_False) { } diff --git a/src/MS/MS_InstMet.cxx b/src/MS/MS_InstMet.cxx index 20fb703..1a0b255 100755 --- a/src/MS/MS_InstMet.cxx +++ b/src/MS/MS_InstMet.cxx @@ -2,7 +2,7 @@ #include MS_InstMet::MS_InstMet(const Handle(TCollection_HAsciiString)& aName, - const Handle(TCollection_HAsciiString)& aClass) : myMode(0), MS_MemberMet(aName,aClass) + const Handle(TCollection_HAsciiString)& aClass) : MS_MemberMet(aName,aClass), myMode(0) { } diff --git a/src/MS/MS_MetaSchema.cxx b/src/MS/MS_MetaSchema.cxx index dc226a8..0994e12 100755 --- a/src/MS/MS_MetaSchema.cxx +++ b/src/MS/MS_MetaSchema.cxx @@ -1178,7 +1178,7 @@ Standard_Boolean MS_MetaSchema::CheckClass(const Handle(MS_Class)& aClass) const { Standard_Boolean result = Standard_True, isFound, - locRes; + locRes = Standard_False; Standard_Integer i,j,k; Handle(MS_HSequenceOfField) aSeqField = aClass->GetFields(); Handle(TColStd_HSequenceOfHAsciiString) uses; @@ -1924,7 +1924,7 @@ Standard_Boolean MS_MetaSchema::CheckInstClass(const Handle(MS_InstClass)& anIns else if (aType->IsKind(STANDARD_TYPE(MS_StdClass))) { Handle(MS_StdClass) theClass = *((Handle(MS_StdClass)*)&aType); Handle(TColStd_HSequenceOfHAsciiString) aSeqAncestors = theClass->GetFullInheritsNames(); - Standard_Integer j,k; + Standard_Integer j; Handle(MS_InstClass) anNestInst; locRes = Standard_False; @@ -2002,7 +2002,7 @@ Standard_Boolean MS_MetaSchema::CheckInstClass(const Handle(MS_InstClass)& anIns if (locRes) { Handle(TCollection_HAsciiString) typeName; - Standard_Integer pos; + Standard_Integer pos = 0; gettypeper1 = GetType(anNestInst->GenClass()); theGenClass = *((Handle(MS_GenClass)*)&gettypeper1); diff --git a/src/MS/MS_Method.cxx b/src/MS/MS_Method.cxx index 54036a1..f3e2b0d 100755 --- a/src/MS/MS_Method.cxx +++ b/src/MS/MS_Method.cxx @@ -10,7 +10,7 @@ #define MET_OPERATOR 0x20 #define MET_FUNCCALL 0x40 -MS_Method::MS_Method(const Handle(TCollection_HAsciiString)& aName) : myAttribute(0),MS_Common(aName),myRaises(new TColStd_HSequenceOfHAsciiString) +MS_Method::MS_Method(const Handle(TCollection_HAsciiString)& aName) : MS_Common(aName),myAttribute(0),myRaises(new TColStd_HSequenceOfHAsciiString) { } diff --git a/src/MS/MS_Param.cxx b/src/MS/MS_Param.cxx index 5778d72..0202d64 100755 --- a/src/MS/MS_Param.cxx +++ b/src/MS/MS_Param.cxx @@ -10,7 +10,7 @@ #include MS_Param::MS_Param(const Handle(MS_Method)& aMethod, - const Handle(TCollection_HAsciiString)& aName) : myMethod(aMethod.operator->()),myAccessMode(0),myType(new TCollection_HAsciiString), MS_Common(aName) + const Handle(TCollection_HAsciiString)& aName) : MS_Common(aName), myMethod(aMethod.operator->()),myAccessMode(0),myType(new TCollection_HAsciiString) { } diff --git a/src/MS/MS_ParamWithValue.cxx b/src/MS/MS_ParamWithValue.cxx index e0975fc..2ffd847 100755 --- a/src/MS/MS_ParamWithValue.cxx +++ b/src/MS/MS_ParamWithValue.cxx @@ -8,7 +8,7 @@ #include MS_ParamWithValue::MS_ParamWithValue(const Handle(MS_Method)& aMethod, - const Handle(TCollection_HAsciiString)& aName) : myTypeVal(MS_NONE),MS_Param(aMethod,aName) + const Handle(TCollection_HAsciiString)& aName) : MS_Param(aMethod,aName), myTypeVal(MS_NONE) { } diff --git a/src/MS/MS_StdClass.cxx b/src/MS/MS_StdClass.cxx index eb1bd95..8bcf0ef 100755 --- a/src/MS/MS_StdClass.cxx +++ b/src/MS/MS_StdClass.cxx @@ -4,7 +4,8 @@ #include MS_StdClass::MS_StdClass(const Handle(TCollection_HAsciiString)& aName, - const Handle(TCollection_HAsciiString)& aPackage) : myNestingState(Standard_False),MS_Class(aName,aPackage) + const Handle(TCollection_HAsciiString)& aPackage) : + MS_Class(aName,aPackage), myNestingState(Standard_False) { } @@ -14,7 +15,7 @@ MS_StdClass::MS_StdClass(const Handle(TCollection_HAsciiString)& aName, const Standard_Boolean aPrivate, const Standard_Boolean aDeferred, const Standard_Boolean aInComplete) -: myNestingState(Standard_False),MS_Class(aName,aPackage,Mother,aPrivate,aDeferred,aInComplete) +: MS_Class(aName,aPackage,Mother,aPrivate,aDeferred,aInComplete), myNestingState(Standard_False) { } -- 2.39.5