update to use fmt-based apis

Not complete, but a first big stab converting users of Mu::Error and
various g_warning & friends, format to the new libfmt-based APIs.
This commit is contained in:
Dirk-Jan C. Binnema
2023-07-05 23:10:13 +03:00
parent 742ca33740
commit 4920b56671
46 changed files with 435 additions and 449 deletions

View File

@ -91,9 +91,9 @@ Query::Private::make_enquire(const std::string& expr,
WarningVec warns;
const auto tree{parser_.parse(expr, warns)};
for (auto&& w : warns)
g_warning("query warning: %s", to_string(w).c_str());
mu_warning("query warning: {}", to_string(w));
enq.set_query(xapian_query(tree));
g_debug("qtree: %s", to_string(tree).c_str());
mu_debug("qtree: {}", to_string(tree));
}
sort_enquire(enq, sortfield_id, qflags);
@ -291,7 +291,7 @@ Query::parse(const std::string& expr, bool xapian) const
WarningVec warns;
const auto tree{priv_->parser_.parse(expr, warns)};
for (auto&& w : warns)
g_warning("query warning: %s", to_string(w).c_str());
mu_warning("query warning: {}", to_string(w));
if (xapian)
return xapian_query(tree).get_description();