FindSwappedFile() no longer works in CL trunk, looking at the source it seems you're collection workspace files but never actually iterate over them:
Code: Select all
bool ContextCpp::FindSwappedFile(const wxFileName& rhs, wxStringSet_t& others)
(...)
// Check the workspace
std::vector<wxFileName> files; // never used!
ManagerST::Get()->GetWorkspaceFiles(files, true);
for(size_t j = 0; j < exts.GetCount(); j++) {
wxFileName otherFile = rhs;
otherFile.SetExt(exts.Item(j));
if(otherFile.FileExists()) {
// we got a match
others.insert(otherFile.GetFullPath());
}
}
thx,
-- p