]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/sensor.cpp
Make use of the unified storage class for other parts of Layout
[r2c2.git] / source / libr2c2 / sensor.cpp
index 1b7e8cc10c08881a49a22743684046b64683a9fe..8a65d3dedf20f52419d130bfd1612f5bb3cc2a30 100644 (file)
@@ -14,12 +14,12 @@ Sensor::Sensor(Layout &l):
        if(layout.has_driver())
                layout.get_driver().signal_sensor.connect(sigc::mem_fun(this, &Sensor::event));
 
-       layout.add_sensor(*this);
+       layout.add(*this);
 }
 
 Sensor::~Sensor()
 {
-       layout.remove_sensor(*this);
+       layout.remove(*this);
 }
 
 void Sensor::tick(const Time::TimeDelta &dt)