MCPcopy Create free account
hub / github.com/amule-project/amule / AddKeyword

Method AddKeyword

src/SharedFileList.cpp:213–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void CPublishKeywordList::AddKeyword(const wxString& keyword, CKnownFile *file)
214{
215 CPublishKeyword* pubKw = FindKeyword(keyword);
216 if (pubKw == NULL) {
217 pubKw = new CPublishKeyword(keyword);
218 m_lstKeywords.push_back(pubKw);
219 CKeyWordList::iterator it = m_lstKeywords.end();
220 --it;
221 m_keywordIndex[keyword] = it;
222 SetNextPublishTime(0);
223 }
224 pubKw->AddRef(file);
225}
226
227void CPublishKeywordList::AddKeywords(CKnownFile* pFile)
228{

Callers 1

RenameFileMethod · 0.45

Calls 2

AddRefMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected