summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/math-converter.c2
-rw-r--r--src/unit-category.c2
-rw-r--r--src/unit-category.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/math-converter.c b/src/math-converter.c
index 10d5336..5f8dccf 100644
--- a/src/math-converter.c
+++ b/src/math-converter.c
@@ -196,7 +196,7 @@ math_converter_get_category(MathConverter *converter)
static gboolean
-iter_is_unit(GtkTreeModel *model, GtkTreeIter *iter, Unit *unit)
+iter_is_unit(GtkTreeModel *model, GtkTreeIter *iter, const Unit *unit)
{
Unit *u;
diff --git a/src/unit-category.c b/src/unit-category.c
index 72f50d5..af4fb18 100644
--- a/src/unit-category.c
+++ b/src/unit-category.c
@@ -104,7 +104,7 @@ unit_category_get_units(UnitCategory *category)
gboolean
-unit_category_convert(UnitCategory *category, const MPNumber *x, Unit *x_units, Unit *z_units, MPNumber *z)
+unit_category_convert(const UnitCategory *category, const MPNumber *x, Unit *x_units, Unit *z_units, MPNumber *z)
{
g_return_val_if_fail (category != NULL, FALSE);
g_return_val_if_fail (x_units != NULL, FALSE);
diff --git a/src/unit-category.h b/src/unit-category.h
index c5e699c..76c375b 100644
--- a/src/unit-category.h
+++ b/src/unit-category.h
@@ -49,7 +49,7 @@ void unit_category_add_unit(UnitCategory *category, Unit *unit);
const GList *unit_category_get_units(UnitCategory *category);
-gboolean unit_category_convert(UnitCategory *category, const MPNumber *x, Unit *x_units, Unit *z_units, MPNumber *z);
+gboolean unit_category_convert(const UnitCategory *category, const MPNumber *x, Unit *x_units, Unit *z_units, MPNumber *z);
G_END_DECLS