fix compilation error / clang warnings

This commit is contained in:
Dirk-Jan C. Binnema
2020-07-25 11:26:08 +03:00
parent 6cea9fcd71
commit 148c906d8a
8 changed files with 11 additions and 12 deletions

View File

@ -200,7 +200,7 @@ get_query (MuQuery *mqx, const char* searchexpr, bool raw, GError **err) try {
Mu::WarningVec warns;
const auto tree = Mu::parse (searchexpr, warns,
std::make_unique<MuProc>(mqx->db()));
for (const auto w: warns)
for (auto&& w: warns)
std::cerr << w << std::endl;
return Mu::xapian_query (tree);
@ -514,7 +514,7 @@ mu_query_internal (MuQuery *self, const char *searchexpr,
ss << tree;
if (warn) {
for (const auto w: warns)
for (auto&& w: warns)
std::cerr << w << std::endl;
}