Changeset 0990bb9 in tol


Ignore:
Timestamp:
Mar 14, 2012, 4:20:51 PM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
90a07e1
Parents:
de17be6
Message:

ref #1478, al limpiar un NameBlock se debe establecer a NULL el NameBlock del BOperator si este comparte el NameBlock con el miembro Code que lo referencia.

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4370 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/bgrammar/nameblock.cpp

    rde17be6 r0990bb9  
    217217  owner_ = NULL;
    218218  for(n=1; n<=set_.Card(); n++)
    219         {
    220     if(set_[n])
     219  {
     220    if( set_[n] )
    221221    {
    222222      set_[n]->PutNameBlock(NULL);
     223      BSyntaxObject *obj = set_[n];
     224      if( obj->Grammar() == GraCode() ) {
     225        BUserCode* uCode = UCode(obj);
     226        BOperator* opr   = GetOperator(uCode);
     227        if ( opr->NameBlock() && opr->NameBlock() == this ) {
     228          opr->PutNameBlock( NULL );
     229        }
     230      }
    223231    }
    224232  }
Note: See TracChangeset for help on using the changeset viewer.