0024023: Revamp the OCCT Handle -- ambiguity
[occt.git] / src / TDF / TDF_Data.cxx
index 61f845b..25668a0 100644 (file)
@@ -296,9 +296,10 @@ Standard_Integer TDF_Data::CommitTransaction
         }
         // --------------------------------------------------------- Modified.
         else {
+          const TDF_Attribute* anAttrPtr = aPtrCurrentAtt; // to avoid ambiguity
           TDF_Data_DeltaCreation
             ("Modification",
-             aPtrCurrentAtt->DeltaOnModification(backupAtt));
+             anAttrPtr->DeltaOnModification(backupAtt));
           if (aPtrCurrentAtt->myTransaction == backupAtt->myTransaction)
             aPtrCurrentAtt->RemoveBackup();
           attMod = attMod || (aPtrCurrentAtt->myTransaction > 0);