From: Sunwook Bae Date: Mon, 2 Sep 2013 01:47:51 +0000 (+0900) Subject: Add a forward decl of Io::Registry X-Git-Tag: accepted/tizen/20130927.081017^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6547bee8b91f18422eb7725c80714a1bf174aa29;p=platform%2Fframework%2Fnative%2Fappfw.git Add a forward decl of Io::Registry Change-Id: I37def4051a9659410841251472752240b4c24a1d Signed-off-by: Sunwook Bae --- diff --git a/src/app/FApp_AppRegistryImpl.cpp b/src/app/FApp_AppRegistryImpl.cpp index 667a016..f2a532e 100644 --- a/src/app/FApp_AppRegistryImpl.cpp +++ b/src/app/FApp_AppRegistryImpl.cpp @@ -35,6 +35,9 @@ using namespace Tizen::Base::Runtime; namespace Tizen { namespace App { +static const ReadOnlyTag ReadOnly = {}; +static const ReadWriteTag ReadWrite = {}; + _AppRegistryImpl::_AppRegistryImpl(void) : __sectionName(L"__ApplicationStates") { @@ -54,7 +57,8 @@ _AppRegistryImpl::Construct(void) result r = __regPath.Append(packageId); SysTryReturnResult(NID_APP, !IsFailed(r), r, "String appending has failed."); - __mutex.Create(); + r = __mutex.Create(); + SysTryReturnResult(NID_APP, !IsFailed(r), r, "Mutex intialization failed."); { MutexGuard lock(__mutex); diff --git a/src/app/FApp_AppRegistryImpl.h b/src/app/FApp_AppRegistryImpl.h index af6f5ff..8183aab 100644 --- a/src/app/FApp_AppRegistryImpl.h +++ b/src/app/FApp_AppRegistryImpl.h @@ -26,15 +26,14 @@ #include #include +namespace Tizen { namespace Io { class Registry; } } + namespace Tizen { namespace App { struct ReadOnlyTag {}; struct ReadWriteTag {}; -static const ReadOnlyTag ReadOnly = {}; -static const ReadWriteTag ReadWrite = {}; - /** * @class _AppRegistryImpl * @brief This class manages an application's preferences.