| 106 | } |
| 107 | |
| 108 | Document* Documents::getByFileName(const std::string& filename) const |
| 109 | { |
| 110 | std::string fn = base::normalize_path(filename); |
| 111 | for (const auto& doc : *this) { |
| 112 | if (doc->filename() == fn) |
| 113 | return doc; |
| 114 | } |
| 115 | return NULL; |
| 116 | } |
| 117 | |
| 118 | void Documents::deleteAll() |
| 119 | { |
no test coverage detected