[glom/feature_choices_show_all: 2/3] Minor const changes.



commit bed4a684daef6abc9c4ed28e3cf3a40140673aec
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Aug 2 17:40:13 2010 +0200

    Minor const changes.

 glom/mode_data/datawidget/datawidget.cc |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/glom/mode_data/datawidget/datawidget.cc b/glom/mode_data/datawidget/datawidget.cc
index 11a3145..3fd758b 100644
--- a/glom/mode_data/datawidget/datawidget.cc
+++ b/glom/mode_data/datawidget/datawidget.cc
@@ -136,12 +136,11 @@ DataWidget::DataWidget(const sharedptr<LayoutItem_Field>& field, const Glib::ust
           const Glib::ustring to_table = choice_relationship->get_to_table();
 
           const bool with_second = !choice_second.empty();
-
           if(with_second && document)
           {
-            sharedptr<Field> field_second = document->get_field(to_table, choice_second);
+            const sharedptr<const Field> field_second = document->get_field(to_table, choice_second);
 
-            sharedptr<LayoutItem_Field> layout_field_second = sharedptr<LayoutItem_Field>::create();
+            const sharedptr<LayoutItem_Field> layout_field_second = sharedptr<LayoutItem_Field>::create();
             layout_field_second->set_full_field_details(field_second);
             //We use the default formatting for this field->
 



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