aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_widget_actionslider.h
diff options
context:
space:
mode:
authorRyuan Choi <ryuan.choi@gmail.com>2014-01-16 03:33:40 +0900
committerRyuan Choi <ryuan.choi@gmail.com>2014-01-16 03:34:55 +0900
commit37ffb188bbcd19fcefda532d3e7e64ee338d8b54 (patch)
tree18f1a5227d0fae0948fc8882545b16abc16e5bc0 /legacy/elementary/src/lib/elm_widget_actionslider.h
parentwin: Check null before calling elm_widget_highlight_in_theme_get(). It (diff)
downloadefl-37ffb188bbcd19fcefda532d3e7e64ee338d8b54.tar.gz
elm_widget_xxx.h: Adopt EINA_UNLIKELY and fix indentation in FOO_DATA_GET macros.
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/lib/elm_widget_actionslider.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/legacy/elementary/src/lib/elm_widget_actionslider.h b/legacy/elementary/src/lib/elm_widget_actionslider.h
index 61bb2d0fd7..f4c0a5816b 100644
--- a/legacy/elementary/src/lib/elm_widget_actionslider.h
+++ b/legacy/elementary/src/lib/elm_widget_actionslider.h
@@ -35,26 +35,26 @@ struct _Elm_Actionslider_Smart_Data
#define ELM_ACTIONSLIDER_DATA_GET(o, sd) \
Elm_Actionslider_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_ACTIONSLIDER_CLASS)
-#define ELM_ACTIONSLIDER_DATA_GET_OR_RETURN(o, ptr) \
- ELM_ACTIONSLIDER_DATA_GET(o, ptr); \
- if (!ptr) \
+#define ELM_ACTIONSLIDER_DATA_GET_OR_RETURN(o, ptr) \
+ ELM_ACTIONSLIDER_DATA_GET(o, ptr); \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_ACTIONSLIDER_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_ACTIONSLIDER_DATA_GET(o, ptr); \
- if (!ptr) \
- { \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
- return val; \
+ if (EINA_UNLIKELY(!ptr)) \
+ { \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
+ return val; \
}
-#define ELM_ACTIONSLIDER_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_ACTIONSLIDER_CLASS)) \
+#define ELM_ACTIONSLIDER_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_ACTIONSLIDER_CLASS))) \
return
#endif