~tristan957/toption

b6e33294fa2dc5feb3e02e91d8a366645b9218c1 — Tristan Partin 3 years ago a593c00
Remove const usage
2 files changed, 23 insertions(+), 23 deletions(-)

M include/toption/toption.h
M lib/toption.c
M include/toption/toption.h => include/toption/toption.h +12 -12
@@ 32,18 32,18 @@ gboolean t_option_is_none(TOption *self);
gboolean t_option_contains(TOption *self, const GType type);

TOption *t_option_none();
TOption *t_option_from_boolean(const gboolean value);
TOption *t_option_from_char(const gchar value);
TOption *t_option_from_uchar(const guchar value);
TOption *t_option_from_string(const gchararray value);
TOption *t_option_from_int(const gint value);
TOption *t_option_from_int64(const gint64 value);
TOption *t_option_from_long(const glong value);
TOption *t_option_from_uint(const guint value);
TOption *t_option_from_uint64(const guint64 value);
TOption *t_option_from_float(const gfloat value);
TOption *t_option_from_double(const gdouble value);
TOption *t_option_from_pointer(const gpointer value);
TOption *t_option_from_boolean(gboolean value);
TOption *t_option_from_char(gchar value);
TOption *t_option_from_uchar(guchar value);
TOption *t_option_from_string(gchararray value);
TOption *t_option_from_int(gint value);
TOption *t_option_from_int64(gint64 value);
TOption *t_option_from_long(glong value);
TOption *t_option_from_uint(guint value);
TOption *t_option_from_uint64(guint64 value);
TOption *t_option_from_float(gfloat value);
TOption *t_option_from_double(gdouble value);
TOption *t_option_from_pointer(gpointer value);

gboolean t_option_get_boolean(TOption *self);
gchar t_option_get_char(TOption *self);

M lib/toption.c => lib/toption.c +11 -11
@@ 111,7 111,7 @@ out:
}

TOption *
t_option_from_boolean(const gboolean value)
t_option_from_boolean(gboolean value)
{
	TOption *self = g_try_new0(TOption, 1);
	if (!self)


@@ 126,7 126,7 @@ out:
}

TOption *
t_option_from_char(const gchar value)
t_option_from_char(gchar value)
{
	TOption *self = g_try_new0(TOption, 1);
	if (!self)


@@ 141,7 141,7 @@ out:
}

TOption *
t_option_from_uchar(const guchar value)
t_option_from_uchar(guchar value)
{
	TOption *self = g_try_new0(TOption, 1);
	if (!self)


@@ 156,7 156,7 @@ out:
}

TOption *
t_option_from_string(const gchararray value)
t_option_from_string(gchararray value)
{
	TOption *self = g_try_new0(TOption, 1);
	if (!self)


@@ 171,7 171,7 @@ out:
}

TOption *
t_option_from_int(const gint value)
t_option_from_int(gint value)
{
	TOption *self = g_try_new0(TOption, 1);
	if (!self)


@@ 186,7 186,7 @@ out:
}

TOption *
t_option_from_int64(const gint64 value)
t_option_from_int64(gint64 value)
{
	TOption *self = g_try_new0(TOption, 1);
	if (!self)


@@ 201,7 201,7 @@ out:
}

TOption *
t_option_from_uint(const guint value)
t_option_from_uint(guint value)
{
	TOption *self = g_try_new0(TOption, 1);
	if (!self)


@@ 216,7 216,7 @@ out:
}

TOption *
t_option_from_uint64(const guint64 value)
t_option_from_uint64(guint64 value)
{
	TOption *self = g_try_new0(TOption, 1);
	if (!self)


@@ 231,7 231,7 @@ out:
}

TOption *
t_option_from_float(const gfloat value)
t_option_from_float(gfloat value)
{
	TOption *self = g_try_new0(TOption, 1);
	if (!self)


@@ 246,7 246,7 @@ out:
}

TOption *
t_option_from_double(const gdouble value)
t_option_from_double(gdouble value)
{
	TOption *self = g_try_new0(TOption, 1);
	if (!self)


@@ 261,7 261,7 @@ out:
}

TOption *
t_option_from_pointer(const gpointer value)
t_option_from_pointer(gpointer value)
{
	TOption *self = g_try_new0(TOption, 1);
	if (!self)