Commit 2a1eb874 authored by Volker Krause's avatar Volker Krause
Browse files

Fix extractor deduplication

This was using the implicit bool conversion rather than the intended
pointer comparison.
parent e5bee99e
......@@ -83,9 +83,9 @@ void ExtractorRepositoryPrivate::extractorForTypeAndContent(ExtractorInput::Type
void ExtractorRepositoryPrivate::insertExtractor(const Extractor &ext, std::vector<Extractor> &extractors)
const auto it = std::lower_bound(extractors.begin(), extractors.end(), ext, [](const auto &lhs, const auto &rhs) {
return lhs.d < rhs.d;
return lhs.d.constData() < rhs.d.constData();
if (it != extractors.end() && (*it).d == ext.d) {
if (it != extractors.end() && (*it).d.constData() == ext.d.constData()) {
extractors.insert(it, ext);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment