mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
maybe netbsd is more pedantic about this?
This commit is contained in:
parent
afcbd28d3b
commit
523db6051d
@ -1079,7 +1079,7 @@ shared_ptr<BaseDB> UltimateTruth::compile(const set<unsigned> &ids,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::move(db);
|
return db;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool UltimateTruth::allocScratch(shared_ptr<const BaseDB> db) {
|
bool UltimateTruth::allocScratch(shared_ptr<const BaseDB> db) {
|
||||||
|
@ -1830,11 +1830,11 @@ unique_ptr<CorporaSource> buildCorpora(const vector<string> &corporaFiles,
|
|||||||
exit_with_fail();
|
exit_with_fail();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return std::move(c); /* move allows unique_ptr<CorporaSource> conversion */
|
return c;
|
||||||
} else {
|
} else {
|
||||||
auto c = std::make_unique<NfaGeneratedCorpora>(
|
auto c = std::make_unique<NfaGeneratedCorpora>(
|
||||||
exprMap, corpus_gen_prop, force_utf8, force_prefilter);
|
exprMap, corpus_gen_prop, force_utf8, force_prefilter);
|
||||||
return std::move(c);
|
return c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user