Fix compiler warning in MoreMenuUI 45/49845/2
authorJanusz Majnert <j.majnert@samsung.com>
Tue, 20 Oct 2015 13:32:22 +0000 (15:32 +0200)
committerJanusz Majnert <j.majnert@samsung.com>
Wed, 21 Oct 2015 07:30:20 +0000 (00:30 -0700)
[Issue]        N/A
[Problem]      Compilation warning about unused variable
[Solution]     Use the defined variable
[Verification] Build the project and verify that there are no warnings from
               MoreMenuUI.cpp

Change-Id: I35891dd6c18e64bcd4b0003d4ac47fe25e641eb7

services/MoreMenuUI/MoreMenuUI.cpp

index f623118f1e67b5dacfafa9d16f2f2f2e84c7e007..0376c03cd67bd8400bb74cbebe394212b991e945 100644 (file)
@@ -344,7 +344,7 @@ void MoreMenuUI::clearItems()
     BROWSER_LOGD("[%s:%d]", __PRETTY_FUNCTION__, __LINE__);
     for (auto it = m_map_menu_views.begin(); it != m_map_menu_views.end(); ++it) {
         Elm_Object_Item* bookmarkView = it->second;
-        Evas_Object *button = elm_object_item_part_content_get(it->second, "thumbbutton_item");
+        Evas_Object *button = elm_object_item_part_content_get(bookmarkView, "thumbbutton_item");
         evas_object_event_callback_del(button, EVAS_CALLBACK_MOUSE_IN, __cb_mouse_in);
         evas_object_event_callback_del(button, EVAS_CALLBACK_MOUSE_OUT, __cb_mouse_out);
     }