Revision 50:0f9353a69866 common/FeatureFileIndex.cpp

View differences:

common/FeatureFileIndex.cpp
108 108
        Triples results = m_index->match(pattern);
109 109
        std::cerr << "FeatureFileIndex::loadFor: " << results.size() << " audio file(s) found with hash " << tf->hash().toStdString() << std::endl;
110 110
        foreach (Triple t, results) {
111
            fileUris.insert(Uri(t.a.value));
111
            fileUris.insert(Uri(t.a.value()));
112 112
        }
113 113
    }
114 114

  
......
135 135

  
136 136
    foreach (Triple t, results) {
137 137
        try {
138
            BasicStore *b = BasicStore::load(QUrl(t.a.value));
138
            BasicStore *b = BasicStore::load(QUrl(t.a.value()));
139 139
            Triples ts = b->match
140 140
                (Triple(afuri, "a", m_index->expand("mo:AudioFile")));
141 141
            std::cerr << "FeatureFileIndex::loadFor: feature file "
......
151 151
                    if (!hashts.empty()) {
152 152
                        good = false;
153 153
                        foreach (Triple hasht, hashts) {
154
                            if (hasht.c.value == hash) {
154
                            if (hasht.c.value() == hash) {
155 155
                                std::cerr << "Hash " << hasht.c << " matches our hash " << hash.toStdString() << std::endl;
156 156
                                good = true;
157 157
                                break;

Also available in: Unified diff