From 50054f938958ad8fe1351f0f245226e56ce4d586 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 8 Nov 2012 01:47:37 +0100 Subject: added missing transition table initialization for label state --- goto.cpp | 5 +++++ goto.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/goto.cpp b/goto.cpp index f183ca1..3785076 100644 --- a/goto.cpp +++ b/goto.cpp @@ -160,6 +160,11 @@ public: static GotoTable table; +StateLabel::StateLabel() : State() +{ + transitions['\0'] = this; +} + State * StateLabel::custom(gchar chr) { diff --git a/goto.h b/goto.h index 87324d8..64ae31b 100644 --- a/goto.h +++ b/goto.h @@ -7,6 +7,9 @@ #include "parser.h" class StateLabel : public State { +public: + StateLabel(); + private: State *custom(gchar chr); }; -- cgit v1.2.3