maybe netbsd is more pedantic about this?

This commit is contained in:
isildur-g 2024-03-06 17:05:55 +01:00
parent afcbd28d3b
commit 523db6051d
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -1830,11 +1830,11 @@ unique_ptr<CorporaSource> buildCorpora(const vector<string> &corporaFiles,
exit_with_fail();
}
}
return std::move(c); /* move allows unique_ptr<CorporaSource> conversion */
return c;
} else {
auto c = std::make_unique<NfaGeneratedCorpora>(
exprMap, corpus_gen_prop, force_utf8, force_prefilter);
return std::move(c);
return c;
}
}