Commit Graph
9 Commits
Author SHA1 Message Date
shenleban tongying 3e3711da51 remove redundant .c_str()
u8s2qs(takes std::string)
dbd is same type of tl which is vector<string>
2022-08-23 05:56:14 -04:00
shenleban tongying 5608a8f79c && is already short-circuit evaluation
abusing ? : seems unnecessary

if m_stops empty -> just return false
then try find -> judge if the term can be found (result of find is not the end of m_stops)
2022-08-23 05:51:08 -04:00
shenleban tongying 758f468e3a Remove some leftover #includes related to unused Qt components 2022-08-23 05:39:16 -04:00
shenleban tongying 32b74f2ac2 fix: use std::make_shared in simple cases to reduce allocation 2022-08-23 05:24:33 -04:00
shenleban tongying d00ea4e420 fix: asString already declared at func beginning 2022-08-23 05:06:39 -04:00
shenleban tongying 565a1115f7 fix: a naming reuse
At ~200 lines below, `it` get reused and shadowed in a for loop `QStringList::iterator it`.

Eliminate it completely. If we use C++20, we can just std::set::contains()
2022-08-23 04:57:21 -04:00
shenleban tongying bed57aeaf6 simplify two true-false 2022-08-23 04:32:43 -04:00
shenleban tongying 708a57de1e add missing & for u8s2qs 2022-08-23 04:25:36 -04:00
shenleban tongying f7f693f437 simplify libtoolize detection 2021-10-07 08:22:57 -04:00