# HG changeset patch # User Chris Cannam # Date 1301312859 -3600 # Node ID 0f9353a698667982ba84a8ff725862a70b58ab9c # Parent a6a71d1c7eb79c60c834156624b76c31f6213770 Adjustments to accommodate changes in dataquay nodes_have_hashes code diff -r a6a71d1c7eb7 -r 0f9353a69866 common/FeatureFileIndex.cpp --- 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;