Remove warning during building process
authorMaciej Piotrowski <m.piotrowski@samsung.com>
Fri, 11 Oct 2013 10:06:56 +0000 (12:06 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 17 Oct 2013 00:53:51 +0000 (00:53 +0000)
    [Issue#]     LINUXWRT-1002
    [Problem]    Warning was displayed during building process
    [Cause]      Deprecated version of method:
                 PropertyDAOReadOnly::GetPropertyList(DbWidgetHandle)
    [Solution]   Use non deprecated version of method:
                 PropertyDAOReadOnly::GetPropertyList(TizenAppId)
    [Verification] Build repository.
    [SCMRequest] N/A

Change-Id: Id3f59e450ee6cd50a862299aae303f982f10b3a3

modules/widget_interface_dao/dao/widget_interface_dao.cpp
tests/dao/TestCases_PropertyDAO.cpp

index 7bc61b7..e56ce42 100644 (file)
@@ -127,7 +127,9 @@ void WidgetInterfaceDAO::copyPropertiesFromWrtDatabase()
     SQL_CONNECTION_EXCEPTION_HANDLER_BEGIN
     {
         WrtDB::PropertyDAOReadOnly::WidgetPreferenceList existing =
-            WrtDB::PropertyDAOReadOnly::GetPropertyList(m_widgetHandle);
+            WrtDB::PropertyDAOReadOnly::GetPropertyList(
+                    WrtDB::WidgetDAOReadOnly::getTzAppId(m_widgetHandle)
+        );
 
         //save all properties read from config.xml
         FOREACH(prop, existing) {
index 8ddc977..8ff2ad6 100644 (file)
@@ -81,9 +81,6 @@ RUNNER_TEST(property_dao_get_lists)
             PropertyDAOReadOnly::WidgetPreferenceList prefs_tid =
                     PropertyDAOReadOnly::GetPropertyList(it->tappid);
             RUNNER_ASSERT(prefs_tid.size() == it->nrow);
-            PropertyDAOReadOnly::WidgetPreferenceList prefs_aid =
-                    PropertyDAOReadOnly::GetPropertyList(it->whandleid);
-            RUNNER_ASSERT(prefs_aid.size() == it->nrow);
         }
     }
     { //property key list
@@ -143,19 +140,6 @@ RUNNER_TEST(property_dao_get_list_exceptions)
         }
         RUNNER_ASSERT_MSG(!(assert_flag),"Error, value doesn't make exception");
     }
-    {
-        bool assert_flag;
-        DbWidgetHandle handle_non_exist(2010);
-        assert_flag=true;
-        Try{
-            PropertyDAOReadOnly::WidgetPreferenceList prefs =
-                    PropertyDAOReadOnly::GetPropertyList(handle_non_exist);
-        } Catch(WidgetDAOReadOnly::Exception::WidgetNotExist)
-        {
-            assert_flag=false;
-        }
-        RUNNER_ASSERT_MSG(!(assert_flag),"Error, value doesn't make exception");
-    }
 }