summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2018-04-18 10:11:43 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-18 10:15:26 +0200
commit72f4ab875dbf7635abf79e2e580f173dfe859533 (patch)
treec7986296033e01b61695eae50727411a77bf2445 /src/examples/eolian_cxx
parentc79f6640bd957b0954ca08f759de0ffc2751eda7 (diff)
examples: cxx: fix some missing const attributes in colourable*
Fixing some fallout from fcae7cab276c2d3b19bb913ad908b67b7dd33089 Given that the examples do not build for weeks with CXX enabled this is just the tip of the iceberg.
Diffstat (limited to 'src/examples/eolian_cxx')
-rw-r--r--src/examples/eolian_cxx/colourable.c4
-rw-r--r--src/examples/eolian_cxx/colourablesquare.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/eolian_cxx/colourable.c b/src/examples/eolian_cxx/colourable.c
index 001665f..f4f1627 100644
--- a/src/examples/eolian_cxx/colourable.c
+++ b/src/examples/eolian_cxx/colourable.c
@@ -83,7 +83,7 @@ _ns_colourable_colour_mask(Eo *obj EINA_UNUSED, Colourable_Data *self, int mask)
83} 83}
84 84
85void 85void
86_ns_colourable_composite_colour_get(Eo *obj EINA_UNUSED, Colourable_Data *self, int* r, int* g, int* b) 86_ns_colourable_composite_colour_get(const Eo *obj EINA_UNUSED, Colourable_Data *self, int* r, int* g, int* b)
87{ 87{
88 *r = self->r; 88 *r = self->r;
89 *g = self->g; 89 *g = self->g;
@@ -104,7 +104,7 @@ _ns_colourable_composite_colour_set(Eo *obj EINA_UNUSED, Colourable_Data *self,
104} 104}
105 105
106int 106int
107_ns_colourable_colour_get(Eo *obj EINA_UNUSED, Colourable_Data *self) 107_ns_colourable_colour_get(const Eo *obj EINA_UNUSED, Colourable_Data *self)
108{ 108{
109 int rgb = 109 int rgb =
110 ((self->r << 16)& 0x00ff0000) | 110 ((self->r << 16)& 0x00ff0000) |
diff --git a/src/examples/eolian_cxx/colourablesquare.c b/src/examples/eolian_cxx/colourablesquare.c
index a6ea213..6b6d787 100644
--- a/src/examples/eolian_cxx/colourablesquare.c
+++ b/src/examples/eolian_cxx/colourablesquare.c
@@ -38,7 +38,7 @@ _ns_colourablesquare_size_constructor(Eo *obj EINA_UNUSED, ColourableSquare_Data
38} 38}
39 39
40static int 40static int
41_ns_colourablesquare_size_get(Eo *obj EINA_UNUSED, ColourableSquare_Data *self) 41_ns_colourablesquare_size_get(const Eo *obj EINA_UNUSED, ColourableSquare_Data *self)
42{ 42{
43 DBG("_ns_colourablesquare_size_get() => %d\n", self->size); 43 DBG("_ns_colourablesquare_size_get() => %d\n", self->size);
44 return self->size; 44 return self->size;