1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-16 15:57:52 +01:00

revert last three

This commit is contained in:
Paul Licameli
2017-10-24 04:32:46 -04:00
parent c02bf91689
commit c613a0bd40
3 changed files with 27 additions and 70 deletions

View File

@@ -302,10 +302,10 @@ XMLFileWriter::~XMLFileWriter()
{
// Don't let a destructor throw!
GuardedCall< void >( [&] {
if (!mCommitted) {
if (IsOpened()) {
// Was not committed
auto fileName = GetName();
if ( IsOpened() )
CloseWithoutEndingTags();
CloseWithoutEndingTags();
::wxRemoveFile( fileName );
}
} );
@@ -340,8 +340,6 @@ void XMLFileWriter::Commit()
throw FileException{
FileException::Cause::Rename, tempPath, mCaption, mOutputPath
};
mCommitted = true;
}
void XMLFileWriter::CloseWithoutEndingTags()