Changeset 4d5581d in tol


Ignore:
Timestamp:
Jul 21, 2009, 3:17:12 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
47bb2da
Parents:
c3b406f
Message:

SetCurrent and SetBuilding must return old pointer

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

File:
1 edited

Legend:

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

    rc3b406f r4d5581d  
    279279  const BNameBlock* old = current_;
    280280  current_ = ns;
    281   return(ns);
     281  return(old);
    282282}
    283283
    … …  
    302302  const BNameBlock* old = building_;
    303303  building_ = ns;
    304   return(ns);
    305 }
    306 
    307 
     304  return(old);
     305}
    308306
    309307
Note: See TracChangeset for help on using the changeset viewer.