diff options
author | Jonathon Jongsma <jonathon.jongsma@collabora.co.uk> | 2008-08-11 16:29:08 -0500 |
---|---|---|
committer | Jonathon Jongsma <jonathon.jongsma@collabora.co.uk> | 2008-08-11 16:29:08 -0500 |
commit | 064242b819a9de11a7a8c646088fc77899098ea6 (patch) | |
tree | fa9df0b5163bc00c67547844b07a36a4a99d8646 | |
parent | afb95ead481c8ced5fdbb09affd6f72067723e94 (diff) |
Fix Cairo::logic_error error message
Fix embarrassing mistake where the error string was being initialized with
random data since the m_status member had not yet been initialized.
-rw-r--r-- | cairomm/exception.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cairomm/exception.cc b/cairomm/exception.cc index e4114bf..e389151 100644 --- a/cairomm/exception.cc +++ b/cairomm/exception.cc @@ -29,7 +29,7 @@ inline static const char* string_or_empty(const char* text) //TODO: Is it wise to assume that the string is ASCII, as expected by std::logic_error? logic_error::logic_error(ErrorStatus status) -: std::logic_error( string_or_empty(cairo_status_to_string((cairo_status_t)m_status)) ), +: std::logic_error( string_or_empty(cairo_status_to_string((cairo_status_t)status)) ), m_status(status) { } |