| 1367 | } |
| 1368 | |
| 1369 | bool |
| 1370 | Singleton::removeRecent(std::string const &name) |
| 1371 | { |
| 1372 | bool found = false; |
| 1373 | |
| 1374 | for (auto p = this->getFirstRecent(); p != this->getLastRecent(); ++p) { |
| 1375 | if (*p == name) { |
| 1376 | auto current = p; |
| 1377 | --current; |
| 1378 | |
| 1379 | this->recentProfiles.erase(p); |
| 1380 | |
| 1381 | p = current; |
| 1382 | found = true; |
| 1383 | continue; |
| 1384 | } |
| 1385 | } |
| 1386 | |
| 1387 | return found; |
| 1388 | } |
| 1389 | |
| 1390 | void |
| 1391 | Singleton::clearRecent(void) |
no test coverage detected