From 735b4c4b743a774c5d53ab6a8e10f0f8308a925b Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 18 Mar 2013 23:12:41 +0100 Subject: explicitly instantiate MicroStateMachine: fixes compilation with gcc-4.4 --- src/parser.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index 42d777a..0af481f 100644 --- a/src/parser.h +++ b/src/parser.h @@ -116,9 +116,9 @@ protected: /* label pointers */ typedef const void *MicroState; const MicroState StateStart; -#define MICROSTATE_START G_STMT_START { \ - if (MicroStateMachine::state != StateStart) \ - goto *MicroStateMachine::state; \ +#define MICROSTATE_START G_STMT_START { \ + if (this->state != StateStart) \ + goto *this->state; \ } G_STMT_END MicroState state; @@ -157,7 +157,7 @@ class StringBuildingMachine : public MicroStateMachine { bool toctl; public: - StringBuildingMachine() : MicroStateMachine(), + StringBuildingMachine() : MicroStateMachine(), qregspec_machine(NULL), mode(MODE_NORMAL), toctl(false) {} ~StringBuildingMachine(); -- cgit v1.2.3