diff options
author | Daniel Elstner <daniel@src.gnome.org> | 2009-03-23 11:58:58 +0000 |
---|---|---|
committer | Daniel Elstner <daniel@src.gnome.org> | 2009-03-23 11:58:58 +0000 |
commit | eeb95c593ba5176800abb0c123f23731aad3e906 (patch) | |
tree | acf14b034661336b7f6b9a1c7ecaf0c3152fc577 /gio/src/file.ccg | |
parent | 1a3809efbe08c181b27d9642591919a007178ad0 (diff) | |
download | glibmm-eeb95c593ba5176800abb0c123f23731aad3e906.tar.gz |
Fix --disable-api-exceptions build
* glib/src/keyfile.{ccg,hg}: Conditionalize all exception-handling
code in order to fix the build with --disable-api-exceptions.
* glib/src/regex.hg: ditto,
* gio/src/appinfo.ccg: ditto,
* gio/src/file.{ccg,hg}: ditto,
* gio/src/outputstream.ccg: ditto,
* examples/keyfile/main.cc: ditto,
* examples/regex/main.cc: ditto,
* tests/giomm_ioerror/main.cc: ditto,
* tests/giomm_simple/main.cc: ditto.
svn path=/trunk/; revision=803
Diffstat (limited to 'gio/src/file.ccg')
-rw-r--r-- | gio/src/file.ccg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/src/file.ccg b/gio/src/file.ccg index 1562c756..a3d8cace 100644 --- a/gio/src/file.ccg +++ b/gio/src/file.ccg @@ -2061,7 +2061,7 @@ bool File::load_contents(const Glib::RefPtr<Cancellable>& cancellable, char*& co { GError* gerror = 0; gchar* cetag_out = 0; - bool retvalue = g_file_load_contents(gobj(), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &contents, &(length), &cetag_out, &(gerror)); + bool retvalue = g_file_load_contents(gobj(), Glib::unwrap(cancellable), &contents, &(length), &cetag_out, &(gerror)); #ifdef GLIBMM_EXCEPTIONS_ENABLED if(gerror) ::Glib::Error::throw_exception(gerror); |