ecore: allow for not specifying any static string in Efl.Model.properties.get helper.
authorCedric BAIL <cedric@osg.samsung.com>
Thu, 13 Dec 2018 18:01:34 +0000 (10:01 -0800)
committerShinwoo Kim <cinoo.kim@samsung.com>
Thu, 3 Jan 2019 09:00:28 +0000 (18:00 +0900)
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D7485

src/lib/ecore/efl_model_composite_private.h

index eb9b07b..0b0f042 100644 (file)
@@ -2,13 +2,12 @@
 #define EFL_MODEL_COMPOSITE_PROPERTIES(name, dyn, sta, ...) \
   EFL_MODEL_COMPOSITE_PROPERTIES_SUPER(name, NULL, NULL, (dyn), sta, ##__VA_ARGS__)
 
-#define EFL_MODEL_COMPOSITE_PROPERTIES_SUPER(name, obj, klass, dyn, sta, ...)  \
+#define EFL_MODEL_COMPOSITE_PROPERTIES_SUPER(name, obj, klass, dyn, ...)       \
   Eina_Iterator *name;                                                         \
   do                                                                           \
     {                                                                          \
        static const char *static_props__[] = {                                 \
-         sta,                                                                  \
-         ##__VA_ARGS__                                                         \
+         __VA_ARGS__                                                           \
        };                                                                      \
        name = _efl_model_composite_properties_mix(                             \
          ((obj) ? efl_model_properties_get(efl_super((obj), (klass))) : NULL), \