if (m_matchTimer.GetElapsedMilliseconds() < letter_match_timeout)
m_match.push_back(letter);
else
- m_match.Format("%c", letter);
+ m_match = StringUtils::Format("%c", letter);
m_matchTimer.StartZero();
{
CGUIListItemPtr pItem = m_items[item];
if (pItem->m_bIsFolder)
- strLabel.Format("[%s]", pItem->GetLabel().c_str());
+ strLabel = StringUtils::Format("[%s]", pItem->GetLabel().c_str());
else
strLabel = pItem->GetLabel();
}
switch (info)
{
case CONTAINER_NUM_PAGES:
- label.Format("%u", (GetRows() + m_itemsPerPage - 1) / m_itemsPerPage);
+ label = StringUtils::Format("%u", (GetRows() + m_itemsPerPage - 1) / m_itemsPerPage);
break;
case CONTAINER_CURRENT_PAGE:
- label.Format("%u", GetCurrentPage());
+ label = StringUtils::Format("%u", GetCurrentPage());
break;
case CONTAINER_POSITION:
- label.Format("%i", GetCursor());
+ label = StringUtils::Format("%i", GetCursor());
break;
case CONTAINER_NUM_ITEMS:
{
unsigned int numItems = GetNumItems();
if (numItems && m_items[0]->IsFileItem() && (boost::static_pointer_cast<CFileItem>(m_items[0]))->IsParentFolder())
- label.Format("%u", numItems-1);
+ label = StringUtils::Format("%u", numItems-1);
else
- label.Format("%u", numItems);
+ label = StringUtils::Format("%u", numItems);
}
break;
default: