]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/trackproperties.cpp
Add utility functions to make endpoint path mask operations clearer
[r2c2.git] / source / designer / trackproperties.cpp
index ce806c5d64dacbfbda94c637b5e3097c74570a49..cdb5cb0855b5b62a3c1e37eb0b013b040c1d5b89 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #include <msp/gltk/button.h>
 #include <msp/gltk/label.h>
 #include "libr2c2/tracktype.h"
@@ -50,7 +43,7 @@ TrackProperties::TrackProperties(const Selection &s):
        if(selection.size()==1)
        {
                if(unsigned tid = selection.get_track()->get_turnout_id())
-                       ent_turnout_id->set_text(lexical_cast(tid));
+                       ent_turnout_id->set_text(lexical_cast<string>(tid));
        }
 
        const set<Track *> &tracks = selection.get_tracks();
@@ -67,7 +60,7 @@ TrackProperties::TrackProperties(const Selection &s):
        }
 
        if(sensor_id>=0)
-               ent_sensor_id->set_text(lexical_cast(sensor_id));
+               ent_sensor_id->set_text(lexical_cast<string>(sensor_id));
 }
 
 void TrackProperties::on_response(int code)