indent
This commit is contained in:
parent
ceecf5ff43
commit
2d21d4a460
@ -1115,20 +1115,19 @@ set<string> RclConfig::getIndexedFields() const
|
||||
string RclConfig::fieldCanon(const string& f) const
|
||||
{
|
||||
string fld = stringtolower(f);
|
||||
map<string, string>::const_iterator it = m_aliastocanon.find(fld);
|
||||
const auto it = m_aliastocanon.find(fld);
|
||||
if (it != m_aliastocanon.end()) {
|
||||
LOGDEB1("RclConfig::fieldCanon: [" << f << "] -> [" << it->second <<
|
||||
"]\n");
|
||||
return it->second;
|
||||
}
|
||||
LOGDEB1("RclConfig::fieldCanon: [" << (f) << "] -> [" << (fld) << "]\n");
|
||||
LOGDEB1("RclConfig::fieldCanon: [" << f << "] -> [" << fld << "]\n");
|
||||
return fld;
|
||||
}
|
||||
|
||||
string RclConfig::fieldQCanon(const string& f) const
|
||||
{
|
||||
string fld = stringtolower(f);
|
||||
map<string, string>::const_iterator it = m_aliastoqcanon.find(fld);
|
||||
const auto it = m_aliastoqcanon.find(stringtolower(f));
|
||||
if (it != m_aliastoqcanon.end()) {
|
||||
LOGDEB1("RclConfig::fieldQCanon: [" << f << "] -> [" << it->second <<
|
||||
"]\n");
|
||||
|
||||
@ -442,5 +442,3 @@ bool recoll_ismainthread()
|
||||
{
|
||||
return std::this_thread::get_id() == mainthread_id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -380,4 +380,3 @@ initrclextract(void)
|
||||
return module;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -1066,7 +1066,7 @@ Query_executesd(recoll_QueryObject* self, PyObject *args, PyObject *kwargs)
|
||||
// Move some data from the dedicated fields to the meta array to make
|
||||
// fetching attributes easier. Needed because we only use the meta
|
||||
// array when enumerating keys. Also for url which is also formatted.
|
||||
// But not that some fields are not copied, and are only reachable if
|
||||
// But note that some fields are not copied, and are only reachable if
|
||||
// one knows their name (e.g. xdocid).
|
||||
static void movedocfields(const RclConfig* rclconfig, Rcl::Doc *doc)
|
||||
{
|
||||
@ -2205,4 +2205,3 @@ PyInit_recoll(void)
|
||||
return module;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user