From 1f8d558597098f78aeba4ed5f70824f98dc60060 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 12 May 2013 18:14:02 +0200 Subject: removed most exception specifications: allow bad_allocs to propagate * specifications resulted in runtime errors (unexpected exception) when bad_alloc ocurred * specs should be used scarcely: only when the errors that may be thrown are all known and for documentary purposes --- src/goto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/goto.h') diff --git a/src/goto.h b/src/goto.h index c95c993..b5d3a7f 100644 --- a/src/goto.h +++ b/src/goto.h @@ -108,12 +108,12 @@ public: StateLabel(); private: - State *custom(gchar chr) throw (Error); + State *custom(gchar chr); }; class StateGotoCmd : public StateExpectString { private: - State *done(const gchar *str) throw (Error); + State *done(const gchar *str); }; namespace States { -- cgit v1.2.3