Init Tizen 2.2.1
[framework/osp/social.git] / src / FScl_CategoryImpl.cpp
index 53976cf..4d880a0 100644 (file)
@@ -59,7 +59,7 @@ _CategoryImpl::_CategoryImpl(void)
        int ret = CONTACTS_ERROR_NONE;
        contacts_record_h recordHandle = null;
 
-       SysTryReturnVoidResult(NID_SCL, _ContactDbConnector::EnsureDbConnection() == E_SUCCESS, E_SYSTEM, "[%s] A system error has been occurred.", GetErrorMessage(E_SYSTEM));
+       _AddressbookUtil::InitContactViews();
 
        std::unique_ptr< ArrayListT<int> > pMembers (new (std::nothrow) ArrayListT<int>());
        SysTryReturnVoidResult(NID_SCL, pMembers != null, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
@@ -101,7 +101,7 @@ _CategoryImpl::_CategoryImpl(const _CategoryImpl& rhs)
        int ret = CONTACTS_ERROR_NONE;
        contacts_record_h recordHandle = null;
 
-       SysTryReturnVoidResult(NID_SCL, _ContactDbConnector::EnsureDbConnection() == E_SUCCESS, E_SYSTEM, "[%s] A system error has been occurred.", GetErrorMessage(E_SYSTEM));
+       _AddressbookUtil::InitContactViews();
 
        std::unique_ptr< IListT<int> > pMembers (rhs.GetMembersN());
        SysTryReturnVoidResult(NID_SCL, pMembers != null, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
@@ -556,7 +556,7 @@ _CategoryImpl::GetRemovedMembersN(void) const
 result
 _CategoryImpl::LoadMemberList(void)
 {
-       SysTryReturn(NID_SCL, _ContactDbConnector::EnsureDbConnection() == E_SUCCESS, GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
+       _AddressbookUtil::InitContactViews();
 
        int intValue = 0;
        result r = E_SUCCESS;