From: abv Date: Thu, 25 Sep 2014 09:50:45 +0000 (+0400) Subject: 0025077: [OOP] Explicit initialization of copy constructor X-Git-Tag: V6_8_0_beta~86 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=a9b30f0acb62a71c17670e4a1c2bfc2a40fec6c9;p=occt.git 0025077: [OOP] Explicit initialization of copy constructor Explicit calls of copy constructor of base class added where compiler warnings are reported Minor correction --- diff --git a/src/BOPDS/BOPDS_PassKey.lxx b/src/BOPDS/BOPDS_PassKey.lxx index dabd82bef9..cffef3ba1e 100644 --- a/src/BOPDS/BOPDS_PassKey.lxx +++ b/src/BOPDS/BOPDS_PassKey.lxx @@ -46,23 +46,11 @@ static //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