MCPcopy Create free account
hub / github.com/codestation/qcma / pathToObjectInternal

Method pathToObjectInternal

common/qlistdb.cpp:350–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350CMAObject *QListDB::pathToObjectInternal(const root_list &list, const char *path)
351{
352 // skip the first element since is the root element
353 root_list::const_iterator skipped_first = ++list.begin();
354
355 for(root_list::const_iterator obj = skipped_first; obj != list.end(); ++obj) {
356 if(strcasecmp(path, (*obj)->metadata.path) == 0) {
357 return (*obj);
358 }
359 }
360 return NULL;
361}
362
363int QListDB::acceptFilteredObject(const CMAObject *obj_parent, const CMAObject *current, int type)
364{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected