X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FTDF%2FTDF_Label.cxx;h=fc62badde7b986116d5717a653f3a5d9e33729ac;hp=d37eeefbba7b756c8ee1258857821a211649f907;hb=60d4560d174aa45687d60b0c135d3e6b7d082a34;hpb=6de552e6c40e71803c43838d9e50fddba155429a diff --git a/src/TDF/TDF_Label.cxx b/src/TDF/TDF_Label.cxx index d37eeefbba..fc62badde7 100755 --- a/src/TDF/TDF_Label.cxx +++ b/src/TDF/TDF_Label.cxx @@ -17,14 +17,6 @@ // purpose or non-infringement. Please see the License for the specific terms // and conditions governing the rights and limitations under the License. -// -------------- - -// Version: 0.0 -//Version Date Purpose -// 0.0 Feb 6 1997 Creation - - - #include #include @@ -364,10 +356,8 @@ TDF_LabelNode* TDF_Label::FindOrAddChild } else if (create) { // Creates the label to be inserted always before currentLnp. - const Handle(NCollection_IncAllocator)& anIncAllocator = - (const Handle(NCollection_IncAllocator)&) - myLabelNode ->Data() -> LabelNodeAllocator(); - childLabelNode = new (anIncAllocator) TDF_LabelNode (aTag, myLabelNode); + const TDF_HAllocator& anAllocator = myLabelNode->Data()->LabelNodeAllocator(); + childLabelNode = new (anAllocator) TDF_LabelNode (aTag, myLabelNode); childLabelNode->myBrother = currentLnp; // May be NULL. childLabelNode->Imported(IsImported()); //Inserts the label: