File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -199,14 +199,12 @@ class OWLExporter : public ExporterBase {
199199 outputFile.getChildFile (" web" ).deleteRecursively ();
200200 outputFile.getChildFile (" Test" ).deleteRecursively ();
201201 outputFile.getChildFile (" Source" ).deleteRecursively ();
202- outputFile.getChildFile (" patch.elf" ).deleteRecursively ();
203-
204- Array<String> file_ext = { " h" , " cpp" , " o" , " d" };
205- for (int i = 0 ; i < file_ext.size (); i++)
206- {
207- auto files = outputFile.findChildFiles (2 , false , " *." + file_ext[i]);
208- for (int j = 0 ; j < files.size (); j++)
209- files[j].deleteRecursively ();
202+ outputFile.getChildFile (" patch.elf" ).deleteFile ();
203+
204+ for (auto const & extension : StringArray (" h" , " cpp" , " o" , " d" )) {
205+ for (auto & file : outputFile.findChildFiles (2 , false , " *." + extension)) {
206+ file.deleteFile ();
207+ }
210208 }
211209
212210 // rename binary
You can’t perform that action at this time.
0 commit comments