[glom] Minor const improvements
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Minor const improvements
- Date: Thu, 11 Aug 2011 14:41:00 +0000 (UTC)
commit b533bfb5738bf7bc6a8592ecbc5a1a682eea2313
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Aug 11 16:40:48 2011 +0200
Minor const improvements
.../printoperation_relationshipsoverview.cc | 2 +-
glom/print_layout/canvas_layout_item.cc | 2 +-
.../utility_widgets/canvas/canvas_group_movable.cc | 2 +-
.../utility_widgets/canvas/canvas_table_movable.cc | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/glom/mode_design/relationships_overview/printoperation_relationshipsoverview.cc b/glom/mode_design/relationships_overview/printoperation_relationshipsoverview.cc
index 8346178..f775a0e 100644
--- a/glom/mode_design/relationships_overview/printoperation_relationshipsoverview.cc
+++ b/glom/mode_design/relationships_overview/printoperation_relationshipsoverview.cc
@@ -64,7 +64,7 @@ void PrintOperationRelationshipsOverview::on_draw_page(
if(!root_item)
return;
- Goocanvas::Bounds bounds = root_item->get_bounds();
+ const Goocanvas::Bounds bounds = root_item->get_bounds();
canvas_left = bounds.get_x1();
canvas_right = bounds.get_x2();
canvas_top = bounds.get_y1();
diff --git a/glom/print_layout/canvas_layout_item.cc b/glom/print_layout/canvas_layout_item.cc
index 3a4087f..b8e5538 100644
--- a/glom/print_layout/canvas_layout_item.cc
+++ b/glom/print_layout/canvas_layout_item.cc
@@ -284,7 +284,7 @@ Glib::RefPtr<CanvasItemMovable> CanvasLayoutItem::create_canvas_item_for_layout_
Glib::RefPtr<CanvasTableMovable> canvas_item = CanvasTableMovable::create();
canvas_item->property_vert_grid_line_width() = 1;
canvas_item->property_horz_grid_line_width() = 1;
- canvas_item->property_stroke_color() = "black";
+ canvas_item->property_stroke_color() = "gray";
//Show as many rows as can fit in the height.
double row_height = 0;
diff --git a/glom/utility_widgets/canvas/canvas_group_movable.cc b/glom/utility_widgets/canvas/canvas_group_movable.cc
index 8a9e7e8..3a7d185 100644
--- a/glom/utility_widgets/canvas/canvas_group_movable.cc
+++ b/glom/utility_widgets/canvas/canvas_group_movable.cc
@@ -159,7 +159,7 @@ void CanvasGroupMovable::set_grid(const Glib::RefPtr<const CanvasGroupGrid>& gri
void CanvasGroupMovable::snap_position_one_corner(Corners corner, double& x, double& y) const
{
- Goocanvas::Bounds bounds = get_bounds();
+ const Goocanvas::Bounds bounds = get_bounds();
const double width = std::abs(bounds.get_x2() - bounds.get_x1());
const double height = std::abs(bounds.get_y2() - bounds.get_y1());
diff --git a/glom/utility_widgets/canvas/canvas_table_movable.cc b/glom/utility_widgets/canvas/canvas_table_movable.cc
index a7b8a2a..e2b576f 100644
--- a/glom/utility_widgets/canvas/canvas_table_movable.cc
+++ b/glom/utility_widgets/canvas/canvas_table_movable.cc
@@ -100,7 +100,7 @@ void CanvasTableMovable::set_grid(const Glib::RefPtr<const CanvasGroupGrid>& gri
void CanvasTableMovable::snap_position_one_corner(Corners corner, double& x, double& y) const
{
- Goocanvas::Bounds bounds = get_bounds();
+ const Goocanvas::Bounds bounds = get_bounds();
const double width = std::abs(bounds.get_x2() - bounds.get_x1());
const double height = std::abs(bounds.get_y2() - bounds.get_y1());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]