[libgdamm] Fix Gda::Set::add_holder to work with disabled exceptions
- From: Johannes Schmid <jhs src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgdamm] Fix Gda::Set::add_holder to work with disabled exceptions
- Date: Thu, 30 Jul 2009 12:04:12 +0000 (UTC)
commit 138d4005c3804485003c4dcc8bb91cd3be755fb8
Author: Johannes Schmid <jhs gnome org>
Date: Thu Jul 30 14:03:22 2009 +0200
Fix Gda::Set::add_holder to work with disabled exceptions
ChangeLog | 4 ++++
libgda/src/set.hg | 5 +++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d6e11ac..59ae15f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-30 Johannes Schmid <jschmid openismus com>
+
+ * libgda/src/set.hg: Fix template to work with disabled exceptions
+
2009-07-25 Murray Cumming <murrayc murrayc com>
* libgda/src/connection.ccg: update_meta_store_table():
diff --git a/libgda/src/set.hg b/libgda/src/set.hg
index 5b862b3..9ac235a 100644
--- a/libgda/src/set.hg
+++ b/libgda/src/set.hg
@@ -131,7 +131,12 @@ void Set::add_holder(const Glib::ustring& id, const ValueType& value)
{
Gnome::Gda::Value gdavalue(value);
Glib::RefPtr<Holder> holder = Holder::create(gdavalue.get_value_type(), id);
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
holder->set_value(value);
+#else
+ std::auto_ptr<Glib::Error> error;
+ holder->set_value(value, error);
+#endif
this->add_holder(holder);
}
#endif //DOXYGEN_SHOULD_SKIP_THIS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]