Explicit calls of copy constructor of base class added where compiler warnings are reported
Minor correction
//function :
//purpose :
//=======================================================================
- inline BOPDS_PassKey::BOPDS_PassKey(const BOPDS_PassKey& aOther)
+ inline BOPDS_PassKey::BOPDS_PassKey(const BOPDS_PassKey& theOther)
+:
+ myPtr(0)
{
- Standard_Integer i;
- //
- myPtr=NULL;
- Clear();
- //
- myAllocator=aOther.myAllocator;
- myNbIds=aOther.myNbIds;
- mySum=aOther.mySum;
- //
- if (myNbIds) {
- myPtr=Allocate(myNbIds);
- for (i=0; i<myNbIds; ++i) {
- myPtr[i]=aOther.myPtr[i];
- }
- }
+ (*this) = theOther;
}
//=======================================================================
//function :operator =
//=======================================================================
inline BOPDS_PassKey& BOPDS_PassKey::operator =(const BOPDS_PassKey& aOther)
{
- Standard_Integer i;
- //
Clear();
//
myAllocator=aOther.myAllocator;
//
if (myNbIds) {
myPtr=Allocate(myNbIds);
- for (i=0; i<myNbIds; ++i) {
+ for (int i=0; i<myNbIds; ++i) {
myPtr[i]=aOther.myPtr[i];
}
}
//function :
//purpose :
//=======================================================================
- inline BOPDS_PassKeyBoolean::BOPDS_PassKeyBoolean(const BOPDS_PassKeyBoolean& aOther)
+ inline BOPDS_PassKeyBoolean::BOPDS_PassKeyBoolean(const BOPDS_PassKeyBoolean& theOther)
+:
+ BOPDS_PassKey(theOther)
{
- myPtr=NULL;
- BOPDS_PassKey::operator =(aOther);
- myFlag=aOther.myFlag;
+ myFlag = theOther.myFlag;
}
//=======================================================================
//function :~
// purpose :
// =======================================================================
Graphic3d_ClipPlane::Graphic3d_ClipPlane(const Graphic3d_ClipPlane& theOther)
-: myEquation (theOther.myEquation),
+: Standard_Transient(theOther),
+ myEquation (theOther.myEquation),
myIsOn (theOther.myIsOn),
myIsCapping (theOther.myIsCapping),
myMaterial (theOther.myMaterial),
myMessage = allocate_message(AString);
}
-Standard_Failure::Standard_Failure (const Standard_Failure& aFailure)
+Standard_Failure::Standard_Failure (const Standard_Failure& theFailure)
+: Standard_Transient(theFailure)
{
- myMessage = copy_message(aFailure.myMessage);
+ myMessage = copy_message(theFailure.myMessage);
}
void Standard_Failure::Destroy()