1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 17:11:12 +02:00
v.audacity
2011-11-16 05:59:48 +00:00
parent 618df78900
commit 59db8d4ad4
21 changed files with 77 additions and 81 deletions

View File

@@ -326,7 +326,7 @@ XMLFileWriter::~XMLFileWriter()
void XMLFileWriter::Open(const wxString &name, const wxString &mode)
{
if (!wxFFile::Open(name, mode))
throw new XMLFileWriterException(_("Error opening file"));
throw new XMLFileWriterException(_("Error Opening File"));
}
void XMLFileWriter::Close()
@@ -345,12 +345,12 @@ void XMLFileWriter::CloseWithoutEndingTags()
if (!wxFFile::Flush())
{
wxFFile::Close();
throw new XMLFileWriterException(_("Error flushing file"));
throw new XMLFileWriterException(_("Error Flushing File"));
}
// Note that this should never fail if flushing worked.
if (!wxFFile::Close())
throw new XMLFileWriterException(_("Error closing file"));
throw new XMLFileWriterException(_("Error Closing File"));
}
void XMLFileWriter::Write(const wxString &data)
@@ -360,7 +360,7 @@ void XMLFileWriter::Write(const wxString &data)
// When writing fails, we try to close the file before throwing the
// exception, so it can at least be deleted.
wxFFile::Close();
throw new XMLFileWriterException(_("Error writing to file"));
throw new XMLFileWriterException(_("Error Writing to File"));
}
}