MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / getNameMap

Method getNameMap

sql/tagtable.cpp:802–811  ·  view source on GitHub ↗

Get a hash table of tags by name

Source from the content-addressed store, hash-verified

800
801// Get a hash table of tags by name
802void TagTable::getNameMap(QHash<QString,QString> &nameMap) {
803 QList<qint32> tags;
804 Tag t;
805 getAll(tags);
806 nameMap.empty();
807 for (int i=0; i<tags.size(); i++) {
808 get(t,tags[i]);
809 nameMap.insert(t.name, t.guid);
810 }
811}
812
813
814

Callers 1

ImportEnexMethod · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected