X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2FFScl_CategoryImpl.cpp;h=4d880a0f7d68c62240e1d4a00129f5bcbb7e6caf;hb=be709ea34fcecefd475c2434635b95750ebd49d3;hp=53976cf8e488a789668e584a6b190949a41273f4;hpb=b131a513665cea3c7831dcec1c66be8654c5974d;p=framework%2Fosp%2Fsocial.git diff --git a/src/FScl_CategoryImpl.cpp b/src/FScl_CategoryImpl.cpp index 53976cf..4d880a0 100644 --- a/src/FScl_CategoryImpl.cpp +++ b/src/FScl_CategoryImpl.cpp @@ -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 > pMembers (new (std::nothrow) ArrayListT()); 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 > 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;