bool CBugTraqAssociations::FindProvider(const CString &path, CBugTraqAssociation *assoc) { CTGitPath gitpath; gitpath.SetFromUnknown(path); if (FindProviderForPath(gitpath, assoc)) return true; if (pProjectProvider) { if (assoc) *assoc = *pProjectProvider; return true; } if (!providerUUID.IsEmpty()) { CLSID provider_clsid; CLSIDFromString((LPOLESTR)(LPCWSTR)providerUUID, &provider_clsid); pProjectProvider = new CBugTraqAssociation(_T(""), provider_clsid, _T("bugtraq:provider"), (LPCWSTR)providerParams); if (pProjectProvider) { if (assoc) *assoc = *pProjectProvider; return true; } } return false; }
bool CBugTraqAssociations::FindProvider(const CString &path, CBugTraqAssociation *assoc) const { CTGitPath gitpath; gitpath.SetFromUnknown(path); return FindProviderForPath(gitpath,assoc); }
bool CBugTraqAssociations::FindProviderForPathList(const CTGitPathList &pathList, CBugTraqAssociation *assoc) const { for (int i = 0; i < pathList.GetCount(); ++i) { CTGitPath path = pathList[i]; if (FindProviderForPath(path, assoc)) return true; } return false; }