Source code arrangement (remove warning and unnecessary code) 40/36740/1 accepted/tizen/tv/20150313.005130 submit/tizen_tv/20150312.122121
authorKim Tae Soo <taesoo46.kim@samsung.com>
Thu, 12 Mar 2015 12:19:48 +0000 (21:19 +0900)
committerKim Tae Soo <taesoo46.kim@samsung.com>
Thu, 12 Mar 2015 12:19:48 +0000 (21:19 +0900)
Change-Id: I9e8292b59ef6c132b4a12737fbbabe79aa3072f3
Signed-off-by: Kim Tae Soo <taesoo46.kim@samsung.com>
src/views/category-layout.cpp
src/views/category-songs-layout.cpp
src/views/song-layout.cpp

index ef58b29..bf46bb5 100644 (file)
@@ -909,7 +909,7 @@ void CCategoryLayout::m_CreateCatgrid(bool sort_flag)
 
 void CCategoryLayout::m_SortCatgrid(void)
 {
-       char *sortFuncType[] = {
+       const char *sortFuncType[] = {
                SORT_BY_NAME_AZ,
                SORT_BY_NAME_ZA
        };
index 611cbe0..58099e9 100644 (file)
@@ -956,9 +956,6 @@ void CCategorySongsLayout::t_OnShow(void)
 {
        ASSERT(m);
 
-       SParcel parcel;
-       parcel.ctxtInfo = NULL;
-
        m_EmptySongList();
 
        if (m->depth == DEPTH_SONG_LIST) {
index b5abab1..34e73f8 100644 (file)
@@ -588,8 +588,7 @@ void CSongLayout::Destroy(void)
        CExtBaseLayout::Destroy();
        evas_object_del(Layout());
 
-       if (m->ctxtinfo)
-               free(m->ctxtinfo);
+       free(m->ctxtinfo);
        
        delete[] m->uri;
        delete m;