mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-12 02:40:22 +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:
@@ -96,7 +96,7 @@ void TDataStd_DeltaOnModificationOfExtStringArray::Apply()
|
||||
{
|
||||
|
||||
Handle(TDF_Attribute) TDFAttribute = Attribute();
|
||||
Handle(TDataStd_ExtStringArray) BackAtt = (*((Handle(TDataStd_ExtStringArray)*)&TDFAttribute));
|
||||
Handle(TDataStd_ExtStringArray) BackAtt = Handle(TDataStd_ExtStringArray)::DownCast (TDFAttribute);
|
||||
if(BackAtt.IsNull()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "DeltaOnModificationOfExtStringArray::Apply: OldAtt is Null" <<endl;
|
||||
|
||||
Reference in New Issue
Block a user