[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[core/efl] master 01/01: Revert "Reduce additional call to eina_stringshare_replace."



devilhorns pushed a commit to branch master.

commit 0c88d8e8ceca665343d4ab03ea7ff9048edd7ad4
Author: Chris Michael <cp.michael@samsung.com>
Date:   Fri Sep 13 07:00:28 2013 +0100

    Revert "Reduce additional call to eina_stringshare_replace."
    
    This reverts commit f4f44c777ad410eaea152cc8745ca641ea2c2d5a.
---
 src/lib/ecore_wayland/ecore_wl_input.c | 4 ++--
 1 file 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 20f7381..e458d71 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -240,11 +240,11 @@ ecore_wl_input_cursor_from_name_set(Ecore_Wl_Input *input, const char *cursor_na
 
    _pointer_update_stop(input);
 
+   eina_stringshare_replace(&input->cursor_name, cursor_name);
+
    /* No cursor. Set to default Left Pointer */
    if (!cursor_name) 
      eina_stringshare_replace(&input->cursor_name, "left_ptr");
-   else
-     eina_stringshare_replace(&input->cursor_name, cursor_name);
 
    /* try to get this cursor from the theme */
    if (!(cursor = ecore_wl_cursor_get(input->cursor_name)))

--