glom r1217 - in branches/glom-1-6: . glom/libglom/data_structure glom/mode_design/fields



Author: murrayc
Date: 2007-10-17 15:23:38 +0100 (Wed, 17 Oct 2007)
New Revision: 1217
ViewCVS link: http://svn.gnome.org/viewcvs/glom?rev=1217&view=rev

Modified:
   branches/glom-1-6/ChangeLog
   branches/glom-1-6/glom/libglom/data_structure/field.cc
   branches/glom-1-6/glom/libglom/data_structure/field.h
   branches/glom-1-6/glom/mode_design/fields/box_db_table_definition.cc
Log:
2007-10-17  Murray Cumming  <murrayc murrayc com>

* glom/libglom/data_structure/field.cc:
* glom/libglom/data_structure/field.h: Copy constructor: 
copy m_field_info instead of sharing one reference-counted instance.
get_field_info(): Add a const overload and make the existing one non-const. 
This const correctness should prevent us from using the same instance when 
we actually want to explicitly take a copy.
This errors were probably caused during the port to libgda 3.0, when 
Gda::Column became a reference-counted object.
* glom/mode_design/fields/box_db_table_definition.cc:
get_field_definition(): copy the field_info instead of just reusing the 
existing one, to avoid changing the original field_info accidentally.

These changes make field type changes actually work again in 1.6.




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