]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/train.h
Fix some uninitialized variable warnings
[r2c2.git] / source / libmarklin / train.h
index f267263cb9efbfa22cc804c4eb47c50ea5c972d9..8418d899c5d37980188d12bcc87c38d8dd4ff908 100644 (file)
@@ -17,6 +17,7 @@ Distributed under the GPL
 
 namespace Marklin {
 
+class ArticleNumber;
 class Route;
 class Timetable;
 class Vehicle;
@@ -41,7 +42,7 @@ public:
                void real_speed(unsigned, float, float);
                void route(const std::string &);
                void timetable();
-               void vehicle(unsigned);
+               void vehicle(ArticleNumber);
        };
 
        sigc::signal<void, const std::string &> signal_name_changed;
@@ -134,8 +135,8 @@ public:
        void set_timetable(Timetable *);
        Timetable *get_timetable() { return timetable; }
 
-       void set_route(const Route *);
-       void go_to(Track &);
+       bool set_route(const Route *);
+       bool go_to(Track &);
        bool divert(Track &);
        const Route *get_route() const;
        void place(Block &, unsigned);