aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ring.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/ring.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/ring.cpp')
-rw-r--r--src/ring.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ring.cpp b/src/ring.cpp
index 3168c88..134bf63 100644
--- a/src/ring.cpp
+++ b/src/ring.cpp
@@ -568,7 +568,7 @@ get_absolute_path(const gchar *path)
*/
void
-StateEditFile::do_edit(const gchar *filename) throw (Error)
+StateEditFile::do_edit(const gchar *filename)
{
if (ring.current)
ring.undo_edit();
@@ -578,7 +578,7 @@ StateEditFile::do_edit(const gchar *filename) throw (Error)
}
void
-StateEditFile::do_edit(tecoInt id) throw (Error)
+StateEditFile::do_edit(tecoInt id)
{
if (ring.current)
ring.undo_edit();
@@ -634,7 +634,7 @@ StateEditFile::do_edit(tecoInt id) throw (Error)
* ecetera.
*/
void
-StateEditFile::initial(void) throw (Error)
+StateEditFile::initial(void)
{
tecoInt id = expressions.pop_num_calc(1, -1);
@@ -654,7 +654,7 @@ StateEditFile::initial(void) throw (Error)
}
State *
-StateEditFile::done(const gchar *str) throw (Error)
+StateEditFile::done(const gchar *str)
{
BEGIN_EXEC(&States::start);
@@ -740,7 +740,7 @@ StateEditFile::done(const gchar *str) throw (Error)
* characters are enabled by default.
*/
State *
-StateSaveFile::done(const gchar *str) throw (Error)
+StateSaveFile::done(const gchar *str)
{
BEGIN_EXEC(&States::start);