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/ring.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ring.h') diff --git a/src/ring.h b/src/ring.h index b695cb6..70b7738 100644 --- a/src/ring.h +++ b/src/ring.h @@ -220,16 +220,16 @@ class StateEditFile : public StateExpectFile { private: bool allowFilename; - void do_edit(const gchar *filename) throw (Error); - void do_edit(tecoInt id) throw (Error); + void do_edit(const gchar *filename); + void do_edit(tecoInt id); - void initial(void) throw (Error); - State *done(const gchar *str) throw (Error); + void initial(void); + State *done(const gchar *str); }; class StateSaveFile : public StateExpectFile { private: - State *done(const gchar *str) throw (Error); + State *done(const gchar *str); }; namespace States { -- cgit v1.2.3