MCPcopy Create free account
hub / github.com/Sigil-Ebook/Sigil / GetLandmarkCodeForResource

Method GetLandmarkCodeForResource

src/ResourceObjects/NavProcessor.cpp:582–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582QString NavProcessor::GetLandmarkCodeForResource(const Resource *resource, QString tgt_id)
583{
584 const QList<NavLandmarkEntry> landlist = GetLandmarks();
585 QReadLocker locker(&m_NavResource->GetLock());
586 int pos = GetResourceLandmarkPos(resource, landlist, tgt_id);
587 QString etype;
588 if (pos > -1) {
589 NavLandmarkEntry le = landlist.at(pos);
590 etype = le.etype;
591 }
592 return etype;
593}
594
595QString NavProcessor::GetLandmarkNameForResource(const Resource *resource, QString tgt_id)
596{

Callers 2

foreachFunction · 0.80
AddSemanticCodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected