aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/goto.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-05-12 18:14:02 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-02-15 15:21:53 +0100
commit1f8d558597098f78aeba4ed5f70824f98dc60060 (patch)
treee3ed4e5f5fdb586ebda789d8516ec9473f5fb5ba /src/goto.cpp
parentabfabda5f54ac903bc990340a684e14e5e2b68a5 (diff)
downloadsciteco-1f8d558597098f78aeba4ed5f70824f98dc60060.tar.gz
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
Diffstat (limited to 'src/goto.cpp')
-rw-r--r--src/goto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/goto.cpp b/src/goto.cpp
index 4996122..d0b2dab 100644
--- a/src/goto.cpp
+++ b/src/goto.cpp
@@ -116,7 +116,7 @@ StateLabel::StateLabel() : State()
}
State *
-StateLabel::custom(gchar chr) throw (Error)
+StateLabel::custom(gchar chr)
{
if (chr == '!') {
Goto::table->undo_set(strings[0],
@@ -166,7 +166,7 @@ StateLabel::custom(gchar chr) throw (Error)
* terminate the command-line.
*/
State *
-StateGotoCmd::done(const gchar *str) throw (Error)
+StateGotoCmd::done(const gchar *str)
{
tecoInt value;
gchar **labels;