Fixed: warnings, remove const from cb. method. 54/52754/1
authorDenis Dolzhenko <d.dolzhenko@samsung.com>
Thu, 26 Nov 2015 12:39:05 +0000 (14:39 +0200)
committerDenis Dolzhenko <d.dolzhenko@samsung.com>
Thu, 26 Nov 2015 12:39:05 +0000 (14:39 +0200)
Change-Id: I59af8d42da6d672095b1bdb77614bf6b317f1a93
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
14 files changed:
src/Common/Utils/src/TextDecorator.cpp
src/Common/View/inc/NaviFrameItem.h
src/Conversation/Controller/inc/Conversation.h
src/Conversation/Controller/src/Conversation.cpp
src/MsgThread/Controller/inc/MsgThread.h
src/MsgThread/Controller/src/MsgThread.cpp
src/MsgThread/View/inc/MsgThreadSearchPanel.h
src/MsgThread/View/src/MsgThreadSearchPanel.cpp
src/Settings/Controller/inc/MsgOnSimCard.h
src/Settings/Controller/inc/Settings.h
src/Settings/Controller/src/MsgOnSimCard.cpp
src/Settings/Controller/src/Settings.cpp
src/Viewer/Controller/inc/Viewer.h
src/Viewer/Controller/src/Viewer.cpp

index c8878ad..c80e539 100644 (file)
@@ -29,7 +29,7 @@ const int TextStyle::defaultFontSize = 28;
 
 namespace
 {
-    const char * alignAsString(TextAlign align)
+    const char *alignAsString(TextAlign align)
     {
         switch(align)
         {
@@ -39,6 +39,9 @@ namespace
                 return "left";
             case TextAlign::Right:
                 return "right";
+            case TextAlign::None:
+            default:
+                break;
         }
 
         assert(false);
index 2dbac64..f82e023 100644 (file)
@@ -58,7 +58,7 @@ namespace Msg
             const NaviFrameView &getOwner() const;
 
         protected:
-            virtual void onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId) {};
+            virtual void onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId) {};
 
             //ViewItem
             virtual void onAttached(ViewItem &item);
index 24a7c83..73de453 100644 (file)
@@ -64,7 +64,7 @@ namespace Msg
         private:
             // NaviFrameItem:
             virtual void onAttached(ViewItem &item);
-            virtual void onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId);
+            virtual void onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId);
 
             // IMsgStorageListener:
             virtual void onMsgStorageChange();
index 409fc5c..a87c88b 100644 (file)
@@ -253,7 +253,7 @@ void Conversation::onHwMoreButtonClicked()
     MSG_LOG("");
 }
 
-void Conversation::onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId)
+void Conversation::onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId)
 {
     //TODO: Handle other buttons
     switch(buttonId)
index 23d316c..72c19a6 100644 (file)
@@ -52,7 +52,7 @@ namespace Msg
         private:
             // NaviFrameItem:
             virtual void onAttached(ViewItem &item);
-            virtual void onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId);
+            virtual void onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId);
 
             // IHwButtonListener:
             virtual void onHwBackButtonClicked();
index d936202..f261174 100644 (file)
@@ -295,7 +295,7 @@ void MsgThread::deleteSelectedItems()
     }
 }
 
-void MsgThread::onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId)
+void MsgThread::onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId)
 {
     MSG_LOG("NaviButton id:", buttonId);
     if(buttonId == NaviOkButtonId)
index 722a5c9..cb59347 100644 (file)
@@ -52,7 +52,6 @@ namespace Msg
             void onClearButtonClicked(Evas_Object *obj, void *eventInfo);
 
         private:
-            Evas_Object *m_pLayout;
             Evas_Object *m_pEntry;
             Evas_Object *m_pClearButton;
             IMsgThreadSearchPanelListener *m_pListener;
index 5804e57..1271a96 100644 (file)
@@ -24,8 +24,7 @@
 using namespace Msg;
 
 MsgThreadSearchPanel::MsgThreadSearchPanel(Evas_Object *parent)
-    : m_pLayout(nullptr)
-    , m_pEntry(nullptr)
+    : m_pEntry(nullptr)
     , m_pClearButton(nullptr)
     , m_pListener(nullptr)
 {
index 0f67922..2caa1d6 100644 (file)
@@ -46,7 +46,7 @@ namespace Msg
         private:
             // NaviFrameItem:
             virtual void onAttached(ViewItem &item);
-            virtual void onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId);
+            virtual void onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId);
             void calcChecked(int &check, int &total) const;
             int getItemsCount() const;
 
index e5179ee..1ebd5df 100644 (file)
@@ -43,7 +43,7 @@ namespace Msg
         private:
             // NaviFrameItem:
             virtual void onAttached(ViewItem &item);
-            virtual void onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId);
+            virtual void onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId);
 
             // IListViewListener:
             virtual void onListItemSelected(ListItem &listItem, void *funcData);
index 050290f..b86ff87 100644 (file)
@@ -79,7 +79,7 @@ void MsgOnSimCard::onAttached(ViewItem &item)
     }*/
 }
 
-void MsgOnSimCard::onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId)
+void MsgOnSimCard::onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId)
 {
     if(buttonId == NaviOkButtonId)
     {
index 3538080..cd78e4c 100644 (file)
@@ -404,7 +404,7 @@ void Settings::onNotiSoundChanged(MsgSettings &msgSetting)
     m_pSoundItem->update();
 }
 
-void Settings::onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId)
+void Settings::onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId)
 {
     if(buttonId == NaviPrevButtonId)
     {
index 25380e6..bc850d5 100644 (file)
@@ -37,7 +37,7 @@ namespace Msg
 
             // NaviFrameItem:
             virtual void onAttached(ViewItem &item);
-            virtual void onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId);
+            virtual void onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId);
 
             // IHwButtonListener:
             virtual void onHwBackButtonClicked();
index d3c9827..9c53698 100644 (file)
@@ -53,7 +53,7 @@ void Viewer::onHwMoreButtonClicked()
 
 }
 
-void Viewer::onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId)
+void Viewer::onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId)
 {
     if(buttonId == NaviPrevButtonId)
     {