1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[temp] Shorter for loop

This commit is contained in:
Witold Filipczyk 2023-08-11 14:57:14 +02:00
parent 9d42b1dda0
commit bbb18c506a

View File

@ -60,10 +60,8 @@ static void check_if_no_terminal(void);
void
clean_temporary_files(void)
{
std::map<std::string, bool>::iterator it;
for (it = temporary_files.begin(); it != temporary_files.end(); it++) {
const char *str = (it->first).c_str();
for (auto it : temporary_files) {
const char *str = (it.first).c_str();
if (str) {
unlink(str);