mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 07:13:49 +01:00
Comment where xml writing functions may throw
This commit is contained in:
@@ -62,6 +62,7 @@ BlockFilePtr LegacyAliasBlockFile::Copy(wxFileNameWrapper &&newFileName)
|
||||
}
|
||||
|
||||
void LegacyAliasBlockFile::SaveXML(XMLWriter &xmlFile)
|
||||
// may throw
|
||||
{
|
||||
xmlFile.StartTag(wxT("legacyblockfile"));
|
||||
|
||||
|
||||
@@ -197,6 +197,7 @@ size_t LegacyBlockFile::ReadData(samplePtr data, sampleFormat format,
|
||||
}
|
||||
|
||||
void LegacyBlockFile::SaveXML(XMLWriter &xmlFile)
|
||||
// may throw
|
||||
{
|
||||
xmlFile.StartTag(wxT("legacyblockfile"));
|
||||
|
||||
|
||||
@@ -191,6 +191,7 @@ BlockFilePtr ODDecodeBlockFile::Copy(wxFileNameWrapper &&newFileName)
|
||||
/// Most notably, the summaryfile attribute refers to a file that does not yet, so when the project file is read back in
|
||||
/// and this object reconstructed, it needs to avoid trying to open it as well as schedule itself for OD loading
|
||||
void ODDecodeBlockFile::SaveXML(XMLWriter &xmlFile)
|
||||
// may throw
|
||||
{
|
||||
LockRead();
|
||||
if(IsSummaryAvailable())
|
||||
|
||||
@@ -227,6 +227,7 @@ BlockFilePtr ODPCMAliasBlockFile::Copy(wxFileNameWrapper &&newFileName)
|
||||
/// Most notably, the summaryfile attribute refers to a file that does not yet exist, so when the project file is read back in
|
||||
/// and this object reconstructed, it needs to avoid trying to open it as well as schedule itself for OD loading
|
||||
void ODPCMAliasBlockFile::SaveXML(XMLWriter &xmlFile)
|
||||
// may throw
|
||||
{
|
||||
//we lock this so that mAliasedFileName doesn't change.
|
||||
LockRead();
|
||||
|
||||
@@ -101,6 +101,7 @@ BlockFilePtr PCMAliasBlockFile::Copy(wxFileNameWrapper &&newFileName)
|
||||
}
|
||||
|
||||
void PCMAliasBlockFile::SaveXML(XMLWriter &xmlFile)
|
||||
// may throw
|
||||
{
|
||||
xmlFile.StartTag(wxT("pcmaliasblockfile"));
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ size_t SilentBlockFile::ReadData(samplePtr data, sampleFormat format,
|
||||
}
|
||||
|
||||
void SilentBlockFile::SaveXML(XMLWriter &xmlFile)
|
||||
// may throw
|
||||
{
|
||||
xmlFile.StartTag(wxT("silentblockfile"));
|
||||
|
||||
|
||||
@@ -404,6 +404,7 @@ size_t SimpleBlockFile::ReadData(samplePtr data, sampleFormat format,
|
||||
}
|
||||
|
||||
void SimpleBlockFile::SaveXML(XMLWriter &xmlFile)
|
||||
// may throw
|
||||
{
|
||||
xmlFile.StartTag(wxT("simpleblockfile"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user