ElementNode*
AppSettingManager::AddAppSettingRootNode(Tizen::Base::String rootId)
{
- ElementNode* pRoot = new ElementNode(rootId, L"Root");
+ ElementNode* pRoot = new (std::nothrow) ElementNode(rootId, L"Root");
if (pRoot == null)
{
AppLogDebug("Root Create failed");
pLabel->SetTextColor(COLOR_MAIN_TEXT);
pItem->AddControl(*pLabel);
- relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ if (groupIndex == ID_GROUP_DATE_AND_TIME_FORMAT)
+ {
+ relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN_DETAIL_BUTTON, 0, 0);
+ }
+ else
+ {
+ relativeLayout.SetMargin(*pLabel, itemRectangle.x, RELATIVE_LAYOUT_RIGHT_MARGIN, 0, 0);
+ }
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
relativeLayout.SetRelation(*pLabel, *pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
AppLogDebug("pPackageFilter Construct fail");
}
- String* pKey = new String("http://tizen.org/package/appsetting");
- Boolean* pValue = new Boolean(true);
+ String* pKey = new (std::nothrow) String("http://tizen.org/package/appsetting");
+ Boolean* pValue = new (std::nothrow) Boolean(true);
r = packageFilterMap.Add(pKey, pValue);
if (IsFailed(r))
for (int i=0; i<pCategoryList->GetCount(); ++i)
{
String* pCategory = static_cast<String*>(pCategoryList->GetAt(i));
- if(pCategory->Equals(L"http://tizen.org/category/ime", false))
+ if (pCategory->Equals(L"http://tizen.org/category/ime", false))
{
isIME = true;
break;
String* pKey = null;
if (GetWallpaperIndex() == ID_INDEX_HOME_SCREEN_WALLPAPER)
{
- pKey = new String(L"http://tizen.org/category/homeapp");
+ pKey = new (std::nothrow) String(L"http://tizen.org/category/homeapp");
}
else
{
- pKey = new String(L"http://tizen.org/category/lockapp");
+ pKey = new (std::nothrow) String(L"http://tizen.org/category/lockapp");
}
- Boolean* pValue = new Boolean(true);
+ Boolean* pValue = new (std::nothrow) Boolean(true);
r = packageAppFilterMap.Add(pKey, pValue);
__pPackageAppInfoList = pPackageManager->GetPackageAppInfoListN(packageAppFilterMap);
if (__sortTabSelect == IDA_FOOTER_ITEM_NAME)
{
- pTimeZoneSort = new TiemZoneComparer(DATA_TYPE_COUNTRY);
+ pTimeZoneSort = new (std::nothrow) TiemZoneComparer(DATA_TYPE_COUNTRY);
}
else
{
- pTimeZoneSort = new TiemZoneComparer(DATA_TYPE_GMT);
+ pTimeZoneSort = new (std::nothrow) TiemZoneComparer(DATA_TYPE_GMT);
}
__timeZoneSearchList->Sort(*pTimeZoneSort);
delete pTimeZoneSort;
String country(pData->GetCountryData());
Integer gmt = pData->GetGMTData();
- SetTimeZoneLocaleSearchList(new (std::nothrow)TimeZoneData(*pData));
+ SetTimeZoneLocaleSearchList(new (std::nothrow) TimeZoneData(*pData));
}
}
{
Integer noData;
String noSearchData(ResourceManager::GetString(L"IDS_COM_BODY_NO_SEARCH_RESULTS"));
- SetTimeZoneLocaleSearchList(new (std::nothrow)TimeZoneData(noSearchData, noSearchData, noData));
+ SetTimeZoneLocaleSearchList(new (std::nothrow) TimeZoneData(noSearchData, noSearchData, noData));
}
else
{