1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-24 23:25:53 +01:00

Comments; range-for; fix unchecked dereferences of pointer-to-pointer

This commit is contained in:
Paul Licameli
2021-05-16 08:06:18 -04:00
parent 77b60ebbbb
commit c96d5f12bc
5 changed files with 14 additions and 17 deletions

View File

@@ -868,9 +868,7 @@ void ProjectManager::OpenFiles(AudacityProject *proj)
Importer::SetLastOpenType({});
} );
for (size_t ff = 0; ff < selectedFiles.size(); ff++) {
const wxString &fileName = selectedFiles[ff];
for (const auto &fileName : selectedFiles) {
// Make sure it isn't already open.
if (ProjectFileManager::IsAlreadyOpen(fileName))
continue; // Skip ones that are already open.
@@ -912,7 +910,7 @@ AudacityProject *ProjectManager::OpenProject(
// Ensure that it happens here: don't wait for the application level
// exception handler, because the exception may be intercepted
ProjectHistory::Get(*pProject).RollbackState();
// Any exception now continues propagating
// Any exception now continues propagating
} );
ProjectFileManager::Get( *pProject ).OpenFile( fileNameArg, addtohistory );