mirror of
https://github.com/rkd77/elinks.git
synced 2025-05-18 00:48:57 -04: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
|
void
|
||||||
clean_temporary_files(void)
|
clean_temporary_files(void)
|
||||||
{
|
{
|
||||||
std::map<std::string, bool>::iterator it;
|
for (auto it : temporary_files) {
|
||||||
|
const char *str = (it.first).c_str();
|
||||||
for (it = temporary_files.begin(); it != temporary_files.end(); it++) {
|
|
||||||
const char *str = (it->first).c_str();
|
|
||||||
|
|
||||||
if (str) {
|
if (str) {
|
||||||
unlink(str);
|
unlink(str);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user