]> OCCT Git - occt.git/commitdiff
0033436: Data Exchange, DE_Wrapper - DEXCAFCascade_ConfigurationNode::BuildProvider...
authoroan <oan@opencascade.com>
Thu, 27 Jul 2023 15:18:59 +0000 (16:18 +0100)
committerjokwajeb <jokwajeb@opencascade.com>
Mon, 7 Aug 2023 10:30:06 +0000 (11:30 +0100)
Pass pointer to DEXCAFCascade_ConfigurationNode to DEXCAFCascade_Provider;
Remove forcible manual reset of Provider's node in DE_Wrapper::FindProvider() to verify that all specializations of configuration node work properly without necessity of workarounds.

src/DE/DE_Wrapper.cxx
src/DEXCAFCascade/DEXCAFCascade_ConfigurationNode.cxx

index 45bac0b135c6cd47a18a204890d1ab56f148c11a..16281c2e28edd9d9db7e8d68c880a5f6e6240814 100644 (file)
@@ -538,7 +538,6 @@ Standard_Boolean DE_Wrapper::FindProvider(const TCollection_AsciiString& thePath
       {
         theProvider = aNode->BuildProvider();
         aNode->GlobalParameters = GlobalParameters;
-        theProvider->SetNode(aNode);
         return Standard_True;
       }
     }
index 4f91e2d0ba89a88ebd2a94cec7ac4a6c7c3c5234..ce56b1151ac2c5ea5eb7328f93a9ac9d6a7a3540 100644 (file)
@@ -125,7 +125,7 @@ Handle(DE_ConfigurationNode) DEXCAFCascade_ConfigurationNode::Copy() const
 //=======================================================================
 Handle(DE_Provider) DEXCAFCascade_ConfigurationNode::BuildProvider()
 {
-  return new DEXCAFCascade_Provider();
+  return new DEXCAFCascade_Provider (this);
 }
 
 //=======================================================================