]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/block.cpp
Make use of the unified storage class for other parts of Layout
[r2c2.git] / source / libr2c2 / block.cpp
index f6818166d22c8996c58199abb45e464c2b54fcbc..2df313e27c1f8c53104c4314908be2391eec7b52 100644 (file)
@@ -45,7 +45,7 @@ Block::Block(Layout &l, Track &start):
 
        sensor = new TrackCircuit(layout, *this);
 
-       layout.add_block(*this);
+       layout.add(*this);
 }
 
 Block::~Block()
@@ -62,7 +62,7 @@ Block::~Block()
                        blk->break_link(*this);
                }
 
-       layout.remove_block(*this);
+       layout.remove(*this);
 
        delete sensor;
 }