examples: cxx: fix some missing const attributes in colourable*

Fixing some fallout from fcae7cab27

Given that the examples do not build for weeks with CXX enabled this is
just the tip of the iceberg.
This commit is contained in:
Stefan Schmidt 2018-04-18 10:11:43 +02:00
parent c79f6640bd
commit 72f4ab875d
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ _ns_colourable_colour_mask(Eo *obj EINA_UNUSED, Colourable_Data *self, int mask)
}
void
_ns_colourable_composite_colour_get(Eo *obj EINA_UNUSED, Colourable_Data *self, int* r, int* g, int* b)
_ns_colourable_composite_colour_get(const Eo *obj EINA_UNUSED, Colourable_Data *self, int* r, int* g, int* b)
{
*r = self->r;
*g = self->g;
@ -104,7 +104,7 @@ _ns_colourable_composite_colour_set(Eo *obj EINA_UNUSED, Colourable_Data *self,
}
int
_ns_colourable_colour_get(Eo *obj EINA_UNUSED, Colourable_Data *self)
_ns_colourable_colour_get(const Eo *obj EINA_UNUSED, Colourable_Data *self)
{
int rgb =
((self->r << 16)& 0x00ff0000) |

View File

@ -38,7 +38,7 @@ _ns_colourablesquare_size_constructor(Eo *obj EINA_UNUSED, ColourableSquare_Data
}
static int
_ns_colourablesquare_size_get(Eo *obj EINA_UNUSED, ColourableSquare_Data *self)
_ns_colourablesquare_size_get(const Eo *obj EINA_UNUSED, ColourableSquare_Data *self)
{
DBG("_ns_colourablesquare_size_get() => %d\n", self->size);
return self->size;