[glom] Const correction
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Const correction
- Date: Tue, 11 Oct 2011 21:17:15 +0000 (UTC)
commit c994e34f12b38e22619951cdc01efb78b4448ba7
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Oct 11 23:16:44 2011 +0200
Const correction
glom/print_layout/canvas_print_layout.cc | 6 +++---
glom/print_layout/canvas_print_layout.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/glom/print_layout/canvas_print_layout.cc b/glom/print_layout/canvas_print_layout.cc
index 4c11882..6927b9d 100644
--- a/glom/print_layout/canvas_print_layout.cc
+++ b/glom/print_layout/canvas_print_layout.cc
@@ -942,7 +942,7 @@ void Canvas_PrintLayout::fill_with_data_portal(const Glib::RefPtr<CanvasLayoutIt
}
}
-void Canvas_PrintLayout::set_canvas_item_field_value(const Glib::RefPtr<Goocanvas::Item> canvas_item, const sharedptr<LayoutItem_Field> field, const Gnome::Gda::Value& value)
+void Canvas_PrintLayout::set_canvas_item_field_value(const Glib::RefPtr<Goocanvas::Item>& canvas_item, const sharedptr<const LayoutItem_Field>& field, const Gnome::Gda::Value& value)
{
if(!field)
return;
@@ -968,8 +968,8 @@ void Canvas_PrintLayout::set_canvas_item_field_value(const Glib::RefPtr<Goocanva
Glib::ustring text;
- sharedptr<LayoutItem_WithFormatting> with_formatting =
- sharedptr<LayoutItem_WithFormatting>::cast_dynamic(field);
+ sharedptr<const LayoutItem_WithFormatting> with_formatting =
+ sharedptr<const LayoutItem_WithFormatting>::cast_dynamic(field);
if(with_formatting)
{
const FieldFormatting& formatting = with_formatting->get_formatting_used();
diff --git a/glom/print_layout/canvas_print_layout.h b/glom/print_layout/canvas_print_layout.h
index c3bb427..4abea0f 100644
--- a/glom/print_layout/canvas_print_layout.h
+++ b/glom/print_layout/canvas_print_layout.h
@@ -102,7 +102,7 @@ private:
//These are not static, because they need access to the document:
void fill_with_data(const Glib::RefPtr<Goocanvas::Group>& canvas_group, const FoundSet& found_set);
void fill_with_data_portal(const Glib::RefPtr<CanvasLayoutItem>& canvas_item, const Gnome::Gda::Value& foreign_key_value);
- static void set_canvas_item_field_value(const Glib::RefPtr<Goocanvas::Item> canvas_item, const sharedptr<LayoutItem_Field> field, const Gnome::Gda::Value& value);
+ static void set_canvas_item_field_value(const Glib::RefPtr<Goocanvas::Item>& canvas_item, const sharedptr<const LayoutItem_Field>& field, const Gnome::Gda::Value& value);
static Glib::RefPtr<Goocanvas::Item> get_canvas_table_cell_child(const Glib::RefPtr<Goocanvas::Table>& table, int row, int col); //TODO: Add this to Goocanvas::Table.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]