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

Method AddRef

src/SharedFileList.cpp:91–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 void IncPublishedCount() { m_uPublishedCount++; }
90
91 bool AddRef(CKnownFile* pFile) {
92 if (std::find(m_aFiles.begin(), m_aFiles.end(), pFile) != m_aFiles.end()) {
93 wxFAIL;
94 return false;
95 }
96 m_aFiles.push_back(pFile);
97 return true;
98 }
99
100 int RemoveRef(CKnownFile* pFile) {
101 KnownFileArray::iterator it = std::find(m_aFiles.begin(), m_aFiles.end(), pFile);

Callers 1

AddKeywordMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected