SysTryReturnResult(NID_UI_CTRL, itemCount < _TAB_ITEM_MAXCOUNT, E_SYSTEM, "A system error has occurred. The tab has maximum number of items.");
- _TabItem *pItem = new (std::nothrow) _TabItem;
+ _TabItem* pItem = new (std::nothrow) _TabItem;
SysTryReturnResult(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
pItem->SetIcon(icon);
SysTryReturnResult(NID_UI_CTRL, itemCount < _TAB_ITEM_MAXCOUNT, E_SYSTEM, "A system error has occurred. The tab has maximum number of items.");
- _TabItem *pItem = new (std::nothrow) _TabItem;
+ _TabItem* pItem = new (std::nothrow) _TabItem;
SysTryReturnResult(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
pItem->SetIcon(icon);
SysTryReturnResult(NID_UI_CTRL, itemCount < _TAB_ITEM_MAXCOUNT, E_SYSTEM, "A system error has occurred. The tab has maximum number of items.");
- _TabItem *pItem = new (std::nothrow) _TabItem;
+ _TabItem* pItem = new (std::nothrow) _TabItem;
SysTryReturnResult(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
pItem->SetText(text);
SysTryReturnResult(NID_UI_CTRL, itemCount < _TAB_ITEM_MAXCOUNT, E_SYSTEM, "A system error has occurred. The tab has maximum number of items.");
- _TabItem *pItem = new (std::nothrow) _TabItem;
+ _TabItem* pItem = new (std::nothrow) _TabItem;
SysTryReturnResult(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
pItem->SetIcon(icon);
if (selectedIndex >= index)
{
- _TabItem *pSelectedItem = null;
+ _TabItem* pSelectedItem = null;
pSelectedItem = GetItemAt(selectedIndex);
if (pSelectedItem != null)
{
SysTryReturnResult(NID_UI_CTRL, itemCount < _TAB_ITEM_MAXCOUNT, E_SYSTEM, "A system error has occurred. The tab has maximum number of items.");
- _TabItem *pItem = new (std::nothrow) _TabItem;
+ _TabItem* pItem = new (std::nothrow) _TabItem;
SysTryReturnResult(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
pItem->SetIcon(icon);
if (selectedIndex >= index)
{
- _TabItem *pSelectedItem = null;
+ _TabItem* pSelectedItem = null;
pSelectedItem = GetItemAt(selectedIndex);
if (pSelectedItem != null)
{
SysTryReturnResult(NID_UI_CTRL, itemCount < _TAB_ITEM_MAXCOUNT, E_SYSTEM, "A system error has occurred. The tab has maximum number of items.");
- _TabItem *pItem = new (std::nothrow) _TabItem;
+ _TabItem* pItem = new (std::nothrow) _TabItem;
SysTryReturnResult(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
pItem->SetText(text);
if (selectedIndex >= index)
{
- _TabItem *pSelectedItem = null;
+ _TabItem* pSelectedItem = null;
pSelectedItem = GetItemAt(selectedIndex);
if (pSelectedItem != null)
{
return E_SYSTEM;
}
- _TabItem *pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
+ _TabItem* pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
result r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, pItem != null, r, "[%s] Propagating.", GetErrorMessage(r));
return E_SYSTEM;
}
- _TabItem *pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
+ _TabItem* pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
result r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, pItem != null, r, "[%s] Propagating.", GetErrorMessage(r));
return E_SYSTEM;
}
- _TabItem *pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
+ _TabItem* pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
result r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, pItem != null, r, "[%s] Propagating.", GetErrorMessage(r));
if (selectedIndex >= index)
{
- _TabItem *pSelectedItem = null;
+ _TabItem* pSelectedItem = null;
pSelectedItem = GetItemAt(selectedIndex);
if (pSelectedItem != null)
{
int itemIndex = GetItemIndexFromActionId(actionId);
- _TabItem *pItem = null;
+ _TabItem* pItem = null;
if (itemIndex < 0)
{
for (index = 0; index < itemCount; index++)
{
- const _TabItem *pItem = dynamic_cast<const _TabItem*>(__tabItems.GetAt(index));
+ const _TabItem* pItem = dynamic_cast<const _TabItem*>(__tabItems.GetAt(index));
if (pItem != null)
{
int
_Tab::GetItemActionIdAt(int index) const
{
- if (__tabItems.GetAt(index) == null )
+ if (__tabItems.GetAt(index) == null)
{
return -1;
}
- const _TabItem *pItem = dynamic_cast<const _TabItem*>(__tabItems.GetAt(index));
+ const _TabItem* pItem = dynamic_cast<const _TabItem*>(__tabItems.GetAt(index));
SysTryReturn(NID_UI_CTRL, pItem != null, E_SYSTEM, E_SYSTEM,"[E_SYSTEM] A system error has occurred. Failed to get an item at index (%d).", index);
return pItem->GetActionId();
_TabItem*
_Tab::GetItemAt(int index)
{
- if (__tabItems.GetAt(index) == null )
+ if (__tabItems.GetAt(index) == null)
{
return null;
}
- _TabItem *pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
+ _TabItem* pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
result r = GetLastResult();
SysTryReturn(NID_UI_CTRL, pItem != null, null, r, "[%s] Propagating.", GetErrorMessage(r));