From 6547bee8b91f18422eb7725c80714a1bf174aa29 Mon Sep 17 00:00:00 2001 From: Sunwook Bae Date: Mon, 2 Sep 2013 10:47:51 +0900 Subject: [PATCH] Add a forward decl of Io::Registry Change-Id: I37def4051a9659410841251472752240b4c24a1d Signed-off-by: Sunwook Bae --- src/app/FApp_AppRegistryImpl.cpp | 6 +++++- src/app/FApp_AppRegistryImpl.h | 5 ++--- 2 files changed, 7 insertions(+), 4 deletions(-) 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. -- 2.7.4