From: jungmin76.park Date: Tue, 6 Aug 2013 12:36:06 +0000 (+0900) Subject: remove redundant local static HashMapProviderT and ComparerT X-Git-Tag: submit/tizen/20130912.075546~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4657fec4414a819b420f13d54b6d673190c2924b;p=platform%2Fframework%2Fnative%2Fappwidget-service.git remove redundant local static HashMapProviderT and ComparerT Change-Id: I779d4e3373dbcdabb377dd2d917342f1f6659543 Signed-off-by: jungmin76.park --- diff --git a/src/FShell_AppContext.cpp b/src/FShell_AppContext.cpp index fc03aa1..5948eaa 100644 --- a/src/FShell_AppContext.cpp +++ b/src/FShell_AppContext.cpp @@ -59,9 +59,7 @@ _AppContext::_AppContext(const AppId& appId) result r = __pPendingEventList->Construct(); SysTryReturnVoidResult(NID_SHELL, !IsFailed(r), E_SYSTEM, "Failed to execute Construct."); - static __HashMapDefaultProviderT strHashCodeProvider; - static ComparerT strComparer; - r = __appWidgetContextList.Construct(0, 0, strHashCodeProvider, strComparer); + r = __appWidgetContextList.Construct(); SysTryReturnVoidResult(NID_SHELL, !IsFailed(r), E_SYSTEM, "Failed to execute Construct."); } diff --git a/src/FShell_AppWidgetManagerService.cpp b/src/FShell_AppWidgetManagerService.cpp index 65fe7ba..6ea0997 100644 --- a/src/FShell_AppWidgetManagerService.cpp +++ b/src/FShell_AppWidgetManagerService.cpp @@ -101,16 +101,13 @@ AppWidgetManagerService::CreateInstance(const char* pCoreDaemonId) result AppWidgetManagerService::Construct(const char* pCoreDaemonId) { + result r = __appContextList.Construct(); + SysTryReturnResult(NID_SHELL, !IsFailed(r), E_SYSTEM, "Failed to execute Construct."); + _AppWidgetManagerStub::StartIpcServer(); SettingInfo::AddSettingEventListener(*this); - static __HashMapDefaultProviderT strHashCodeProvider; - static ComparerT strComparer; - - result r = __appContextList.Construct(0, 0, strHashCodeProvider, strComparer); - SysTryReturnResult(NID_SHELL, !IsFailed(r), E_SYSTEM, "Failed to execute Construct."); - return InitializeCoreDaemonEventReceiver(pCoreDaemonId); }