mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-12 11:06:26 +08:00
0024023: Revamp the OCCT Handle -- downcast (automatic)
Automatic update by command "occt_upgrade . -downcast" C-style cast of Handle to that of derived type (now illegal) is replaced by call to DownCast() Const reference local variables of Handle type initialized by result of DownCast are replaced by normal variables.
This commit is contained in:
@@ -266,7 +266,7 @@ Handle(TDF_DeltaOnModification) TDataStd_ExtStringArray::DeltaOnModification
|
||||
(const Handle(TDF_Attribute)& OldAttribute) const
|
||||
{
|
||||
if(myIsDelta)
|
||||
return new TDataStd_DeltaOnModificationOfExtStringArray(*((Handle(TDataStd_ExtStringArray)*)&OldAttribute));
|
||||
return new TDataStd_DeltaOnModificationOfExtStringArray(Handle(TDataStd_ExtStringArray)::DownCast (OldAttribute));
|
||||
else return new TDF_DefaultDeltaOnModification(OldAttribute);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user