summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-02-15 13:48:59 -0800
committerCedric BAIL <cedric.bail@free.fr>2019-03-08 14:31:08 -0800
commitbc12d9feb5e2904bc9d8e294d922e5de1a95757f (patch)
treebaec76e11965779e96f8688c51f3398d9a0f1864 /src/bin/eolian
parent6bb197caa9181f6c2639ecd25649a8237c158dd4 (diff)
eo: make reflection getter const function.
Getter are usually not modifying there object. This is going to put a strong limit on what a getter property for MVVM is, as it will prevent any side effect on getting a property from a View. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D7969
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/sources.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eolian/sources.c b/src/bin/eolian/sources.c
index b04729b..923c7ba 100644
--- a/src/bin/eolian/sources.c
+++ b/src/bin/eolian/sources.c
@@ -351,7 +351,7 @@ _gen_reflect_get(Eina_Strbuf *buf, const char *cnamel, const Eolian_Type *valt,
351 eina_hash_set(refh, &fid, (void *)EOLIAN_PROP_GET); 351 eina_hash_set(refh, &fid, (void *)EOLIAN_PROP_GET);
352 352
353 eina_strbuf_append(buf, "\nstatic Eina_Value\n"); 353 eina_strbuf_append(buf, "\nstatic Eina_Value\n");
354 eina_strbuf_append_printf(buf, "__eolian_%s_%s_get_reflect(Eo *obj)\n", 354 eina_strbuf_append_printf(buf, "__eolian_%s_%s_get_reflect(const Eo *obj)\n",
355 cnamel, eolian_function_name_get(fid)); 355 cnamel, eolian_function_name_get(fid));
356 eina_strbuf_append(buf, "{\n"); 356 eina_strbuf_append(buf, "{\n");
357 357