aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ring.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-11 15:09:21 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-11 15:09:21 +0100
commit4048ee8150cad5253fd6f0245c9a357484eac3f2 (patch)
tree2434df63c0766d6c2f8f8294af9104697f4abae2 /src/ring.cpp
parent7206f6d1249da0dd8e879d0c0b26185fc6ef89d9 (diff)
downloadsciteco-4048ee8150cad5253fd6f0245c9a357484eac3f2.tar.gz
refactored SciTECO runtime errors: moved from parser.cpp to error.cpp
* the GError expection has been renamed to GlibError, to avoid nameclashes when working from the SciTECO namespace
Diffstat (limited to 'src/ring.cpp')
-rw-r--r--src/ring.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ring.cpp b/src/ring.cpp
index 19b494f..f7dc3bf 100644
--- a/src/ring.cpp
+++ b/src/ring.cpp
@@ -38,6 +38,7 @@
#include "parser.h"
#include "expressions.h"
#include "ring.h"
+#include "error.h"
#ifdef HAVE_WINDOWS_H
/* here it shouldn't cause conflicts with other headers */
@@ -134,7 +135,7 @@ Buffer::load(const gchar *filename)
GError *gerror = NULL;
if (!g_file_get_contents(filename, &contents, &size, &gerror))
- throw State::GError(gerror);
+ throw GlibError(gerror);
edit();