summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-09-12 13:25:34 +0100
committerChris Michael <cp.michael@samsung.com>2013-09-12 15:02:34 +0100
commitf4f44c777ad410eaea152cc8745ca641ea2c2d5a (patch)
tree6602627a454de3c4aa1ee7a3e602ee823497c095
parent032acce341fbdcc03577e68d54230dad53fcea24 (diff)
Reduce additional call to eina_stringshare_replace.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_wayland/ecore_wl_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c
index 6f56e9f666..8352552877 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -238,11 +238,11 @@ ecore_wl_input_cursor_from_name_set(Ecore_Wl_Input *input, const char *cursor_na
238 238
239 _pointer_update_stop(input); 239 _pointer_update_stop(input);
240 240
241 eina_stringshare_replace(&input->cursor_name, cursor_name);
242
243 /* No cursor. Set to default Left Pointer */ 241 /* No cursor. Set to default Left Pointer */
244 if (!cursor_name) 242 if (!cursor_name)
245 eina_stringshare_replace(&input->cursor_name, "left_ptr"); 243 eina_stringshare_replace(&input->cursor_name, "left_ptr");
244 else
245 eina_stringshare_replace(&input->cursor_name, cursor_name);
246 246
247 /* try to get this cursor from the theme */ 247 /* try to get this cursor from the theme */
248 if (!(cursor = ecore_wl_cursor_get(input->cursor_name))) 248 if (!(cursor = ecore_wl_cursor_get(input->cursor_name)))