Mercurial > hg > classical
changeset 50:0f9353a69866 nodes_have_hashes
Adjustments to accommodate changes in dataquay nodes_have_hashes code
author | Chris Cannam |
---|---|
date | Mon, 28 Mar 2011 12:47:39 +0100 |
parents | a6a71d1c7eb7 |
children | |
files | common/FeatureFileIndex.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/common/FeatureFileIndex.cpp Mon Mar 28 12:45:26 2011 +0100 +++ b/common/FeatureFileIndex.cpp Mon Mar 28 12:47:39 2011 +0100 @@ -108,7 +108,7 @@ Triples results = m_index->match(pattern); std::cerr << "FeatureFileIndex::loadFor: " << results.size() << " audio file(s) found with hash " << tf->hash().toStdString() << std::endl; foreach (Triple t, results) { - fileUris.insert(Uri(t.a.value)); + fileUris.insert(Uri(t.a.value())); } } @@ -135,7 +135,7 @@ foreach (Triple t, results) { try { - BasicStore *b = BasicStore::load(QUrl(t.a.value)); + BasicStore *b = BasicStore::load(QUrl(t.a.value())); Triples ts = b->match (Triple(afuri, "a", m_index->expand("mo:AudioFile"))); std::cerr << "FeatureFileIndex::loadFor: feature file " @@ -151,7 +151,7 @@ if (!hashts.empty()) { good = false; foreach (Triple hasht, hashts) { - if (hasht.c.value == hash) { + if (hasht.c.value() == hash) { std::cerr << "Hash " << hasht.c << " matches our hash " << hash.toStdString() << std::endl; good = true; break;