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:
parent
9d42b1dda0
commit
bbb18c506a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user