From 4657fec4414a819b420f13d54b6d673190c2924b Mon Sep 17 00:00:00 2001 From: "jungmin76.park" Date: Tue, 6 Aug 2013 21:36:06 +0900 Subject: [PATCH] remove redundant local static HashMapProviderT and ComparerT Change-Id: I779d4e3373dbcdabb377dd2d917342f1f6659543 Signed-off-by: jungmin76.park --- src/FShell_AppContext.cpp | 4 +--- src/FShell_AppWidgetManagerService.cpp | 9 +++------ 2 files changed, 4 insertions(+), 9 deletions(-) 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); } -- 2.7.4