summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@gnome.org>2007-07-04 22:32:53 -0500
committerJonathon Jongsma <jjongsma@gnome.org>2007-07-04 22:32:53 -0500
commit7bbaa8760044e8578d8c79e8a0939e5017a3ff5a (patch)
tree14fa20fab6218b5603e62657a6ded4e62d866567
parentdf2c191f05f941620215ecabb19519550ed5c730 (diff)
add missing 'break;' on the I/O error case statement
-rw-r--r--ChangeLog4
-rw-r--r--cairomm/private.cc17
2 files changed, 13 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 823227a..eba347d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2007-07-04 Jonathon Jongsma <jjongsma@gnome.org>
+ * cairomm/private.cc: add missing 'break;' on the I/O error case statement
+
+2007-07-04 Jonathon Jongsma <jjongsma@gnome.org>
+
* cairomm/context.cc: when getting the source pattern of a Cairo::Context,
check which type of Pattern it is so that we create the correct C++ wrapper.
Without this, RefPtr<>::cast_dynamic() doesn't seem to work as we would
diff --git a/cairomm/private.cc b/cairomm/private.cc
index 68d09f9..5483f38 100644
--- a/cairomm/private.cc
+++ b/cairomm/private.cc
@@ -55,16 +55,17 @@ void throw_exception(ErrorStatus status)
throw Cairo::logic_error(status);
break;
- // Other
+ // Other
case CAIRO_STATUS_READ_ERROR:
case CAIRO_STATUS_WRITE_ERROR:
- {
- //The Cairo language binding advice suggests that these are stream errors
- //that should be mapped to their C++ equivalents.
- const char* error_message = cairo_status_to_string(status);
- throw std::ios_base::failure( error_message ? error_message : std::string() );
- }
-
+ {
+ //The Cairo language binding advice suggests that these are stream errors
+ //that should be mapped to their C++ equivalents.
+ const char* error_message = cairo_status_to_string(status);
+ throw std::ios_base::failure( error_message ? error_message : std::string() );
+ }
+ break;
+
default:
throw Cairo::logic_error(status);
break;