use accessors
This commit is contained in:
@@ -248,7 +248,9 @@ unsigned LoadInternal( XNode *pNode, const RString &xml, RString &sErrorOut, uns
|
|||||||
// XML Node Tag Name Open
|
// XML Node Tag Name Open
|
||||||
iOffset++;
|
iOffset++;
|
||||||
unsigned iTagEnd = xml.find_first_of( " \t\r\n/>", iOffset );
|
unsigned iTagEnd = xml.find_first_of( " \t\r\n/>", iOffset );
|
||||||
SetString( xml, iOffset, iTagEnd, &pNode->m_sName );
|
RString sName;
|
||||||
|
SetString( xml, iOffset, iTagEnd, &sName );
|
||||||
|
pNode->SetName( sName );
|
||||||
iOffset = iTagEnd;
|
iOffset = iTagEnd;
|
||||||
|
|
||||||
// Generate XML Attributte List
|
// Generate XML Attributte List
|
||||||
@@ -310,7 +312,7 @@ unsigned LoadInternal( XNode *pNode, const RString &xml, RString &sErrorOut, uns
|
|||||||
iOffset = iEnd;
|
iOffset = iEnd;
|
||||||
ReplaceEntityText( sValue, g_mapEntitiesToChars );
|
ReplaceEntityText( sValue, g_mapEntitiesToChars );
|
||||||
|
|
||||||
pNode->m_pValue->SetValue( sValue );
|
pNode->SetValue( sValue );
|
||||||
}
|
}
|
||||||
|
|
||||||
// generate child nodes
|
// generate child nodes
|
||||||
@@ -392,7 +394,7 @@ unsigned LoadInternal( XNode *pNode, const RString &xml, RString &sErrorOut, uns
|
|||||||
|
|
||||||
iOffset = iEnd;
|
iOffset = iEnd;
|
||||||
ReplaceEntityText( sValue, g_mapEntitiesToChars );
|
ReplaceEntityText( sValue, g_mapEntitiesToChars );
|
||||||
pNode->m_pValue->SetValue( sValue );
|
pNode->SetValue( sValue );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -454,7 +456,7 @@ bool GetXMLInternal( const XNode *pNode, RageFileBasic &f, bool bWriteTabs, int
|
|||||||
WRITE( "\t" );
|
WRITE( "\t" );
|
||||||
}
|
}
|
||||||
RString s;
|
RString s;
|
||||||
pNode->m_pValue->GetValue( s );
|
pNode->GetValue( s );
|
||||||
ReplaceEntityText( s, g_mapCharsToEntities );
|
ReplaceEntityText( s, g_mapCharsToEntities );
|
||||||
WRITE( s );
|
WRITE( s );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user