1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Comment where xml writing functions may throw

This commit is contained in:
Paul Licameli
2016-12-01 17:03:40 -05:00
parent e3355c3c7e
commit b81cdee7e3
26 changed files with 44 additions and 2 deletions

View File

@@ -828,6 +828,7 @@ XMLTagHandler *FFmpegPresets::HandleXMLChild(const wxChar *tag)
}
void FFmpegPresets::WriteXMLHeader(XMLWriter &xmlFile) const
// may throw
{
xmlFile.Write(wxT("<?xml "));
xmlFile.Write(wxT("version=\"1.0\" "));
@@ -847,6 +848,7 @@ void FFmpegPresets::WriteXMLHeader(XMLWriter &xmlFile) const
}
void FFmpegPresets::WriteXML(XMLWriter &xmlFile) const
// may throw
{
xmlFile.StartTag(wxT("ffmpeg_presets"));
xmlFile.WriteAttr(wxT("version"),wxT("1.0"));