MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / getByFileName

Method getByFileName

src/doc/documents.cpp:108–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108Document* 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
118void Documents::deleteAll()
119{

Callers 1

onProcessMessageMethod · 0.80

Calls 2

normalize_pathFunction · 0.85
filenameMethod · 0.45

Tested by

no test coverage detected