[glom] Adapt to libgdamm API changes.



commit 6e34ea07f1b7b85583f1e9848e597d694efddeea
Author: Murray Cumming <murrayc murrayc com>
Date:   Sun Jan 30 15:23:36 2011 +0100

    Adapt to libgdamm API changes.
    
    * glom/libglom/connectionpool.cc:
    * glom/libglom/db_utils.cc: libgdamm now uses std::vector instead of
    *Handle, like gtkmm.

 ChangeLog                      |    8 ++++++++
 glom/libglom/connectionpool.cc |    2 +-
 glom/libglom/db_utils.cc       |    4 ++--
 3 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 92f26d8..4ae146b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-01-30  Murray Cumming  <murrayc murrayc com>
+
+	Adapt to libgdamm API changes.
+
+	* glom/libglom/connectionpool.cc:
+	* glom/libglom/db_utils.cc: libgdamm now uses std::vector instead of 
+	*Handle, like gtkmm.
+
 2011-01-28  Murray Cumming  <murrayc murrayc com>
 
 	Adapt to the gtkmm 3 change to using vectors.
diff --git a/glom/libglom/connectionpool.cc b/glom/libglom/connectionpool.cc
index 5f1fe1a..c836ff4 100644
--- a/glom/libglom/connectionpool.cc
+++ b/glom/libglom/connectionpool.cc
@@ -517,7 +517,7 @@ bool ConnectionPool::handle_error_cerr_only()
   {
     Glib::RefPtr<Gnome::Gda::Connection> gda_connection = sharedconnection->get_gda_connection();
 
-    typedef std::list< Glib::RefPtr<Gnome::Gda::ConnectionEvent> > type_list_errors;
+    typedef std::vector< Glib::RefPtr<Gnome::Gda::ConnectionEvent> > type_list_errors;
     type_list_errors list_errors = gda_connection->get_events();
 
     if(!list_errors.empty())
diff --git a/glom/libglom/db_utils.cc b/glom/libglom/db_utils.cc
index 7bc3ee1..f09cda6 100644
--- a/glom/libglom/db_utils.cc
+++ b/glom/libglom/db_utils.cc
@@ -804,7 +804,7 @@ type_vec_fields get_fields_for_table_from_database(const Glib::ustring& table_na
 
     holder_table_name->set_value(quoted_table_name);
 
-    std::list< Glib::RefPtr<Gnome::Gda::Holder> > holder_list;
+    std::vector< Glib::RefPtr<Gnome::Gda::Holder> > holder_list;
     holder_list.push_back(holder_table_name);
 
     Glib::RefPtr<Gnome::Gda::DataModel> data_model_fields;
@@ -1327,7 +1327,7 @@ static void recalculate_next_auto_increment_value(const Glib::ustring& table_nam
 
   //Get the max key value in the database:
   Glib::RefPtr<Gnome::Gda::SqlBuilder> builder = Gnome::Gda::SqlBuilder::create(Gnome::Gda::SQL_STATEMENT_SELECT);
-  std::list<guint> args;
+  std::vector<guint> args;
   args.push_back(builder->add_field_id(field_name, table_name));
   builder->add_field_value_id(builder->add_function("MAX", args));
   builder->select_add_target(table_name);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]