simplify
This commit is contained in:
@@ -100,15 +100,13 @@ XNode* Bookkeeper::CreateNode() const
|
||||
|
||||
for( map<Date,int>::const_iterator it = m_mapCoinsForHour.begin(); it != m_mapCoinsForHour.end(); ++it )
|
||||
{
|
||||
XNode *pDay = pData->AppendChild( "Coins" );
|
||||
int iCoins = it->second;
|
||||
XNode *pDay = pData->AppendChild( "Coins", iCoins );
|
||||
|
||||
const Date &d = it->first;
|
||||
pDay->AppendAttr( "Hour", d.m_iHour );
|
||||
pDay->AppendAttr( "Day", d.m_iDayOfYear );
|
||||
pDay->AppendAttr( "Year", d.m_iYear );
|
||||
|
||||
int iCoins = it->second;
|
||||
pDay->SetTextValue( iCoins );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,11 +53,8 @@ void ExportStrings::LuaInformation()
|
||||
pNode->AppendAttr( "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" );
|
||||
pNode->AppendAttr( "xsi:schemaLocation", "http://www.stepmania.com Lua.xsd" );
|
||||
|
||||
XNode *pVersionNode = pNode->AppendChild( "Version" );
|
||||
pVersionNode->SetTextValue( PRODUCT_ID_VER );
|
||||
|
||||
XNode *pDateNode = pNode->AppendChild( "Date" );
|
||||
pDateNode->SetTextValue( DateTime::GetNowDate().GetString() );
|
||||
pNode->AppendChild( "Version", PRODUCT_ID_VER );
|
||||
pNode->AppendChild( "Date", DateTime::GetNowDate().GetString() );
|
||||
|
||||
XmlFileUtil::SaveToFile( pNode, "Lua.xml", "Lua.xsl" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user