From: Maciej Piotrowski Date: Fri, 11 Oct 2013 10:06:56 +0000 (+0200) Subject: Remove warning during building process X-Git-Tag: 2.2.1_release~4^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bd97e2c427cecdcba31c83b936b0e35a147a8ad;p=framework%2Fweb%2Fwrt-commons.git Remove warning during building process [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 --- diff --git a/modules/widget_interface_dao/dao/widget_interface_dao.cpp b/modules/widget_interface_dao/dao/widget_interface_dao.cpp index 7bc61b7..e56ce42 100644 --- a/modules/widget_interface_dao/dao/widget_interface_dao.cpp +++ b/modules/widget_interface_dao/dao/widget_interface_dao.cpp @@ -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) { diff --git a/tests/dao/TestCases_PropertyDAO.cpp b/tests/dao/TestCases_PropertyDAO.cpp index 8ddc977..8ff2ad6 100644 --- a/tests/dao/TestCases_PropertyDAO.cpp +++ b/tests/dao/TestCases_PropertyDAO.cpp @@ -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"); - } }