__responseMessage.AddItems(*response);
}
+ else
+ {
+ SysLog(NID_SYS, "response is empty.");
+ }
return true;
}
_SettingService::DestroySingleton(void)
{
delete __pSettingService;
+ __pSettingService = null;
}
}}
_SystemInfoService::DestroySingleton(void)
{
delete __pSystemInfoService;
+ __pSystemInfoService = null;
}
result
//For improve launch performance
nValue = 0;
- r = reg.GetValue(_SYSTEM_CACHING_SECTION, _SCREEN_DPI, nValue);
- if(r != E_SUCCESS)
+ this->GetValue(_SCREEN_DPI, nValue);
+ if (reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_DPI, nValue) == E_KEY_ALREADY_EXIST)
{
- this->GetValue(_SCREEN_DPI, nValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_DPI, nValue);
- reg.Flush();
+ reg.SetValue(_SYSTEM_CACHING_SECTION,_SCREEN_DPI, nValue);
}
+ reg.Flush();
nValue = 0;
this->GetValue(_SCREEN_HEIGHT, nValue);