mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: convert weightsystem_t and weightsystem_table to C++
As for cylinders, this had to be done simultaneously, Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
28520da655
commit
640ecb345b
28 changed files with 137 additions and 247 deletions
|
@ -127,10 +127,8 @@ static std::vector<QString> getWords(const dive *d)
|
|||
tokenize(QString::fromStdString(tag->tag->name), res);
|
||||
for (auto &cyl: d->cylinders)
|
||||
tokenize(QString::fromStdString(cyl.type.description), res);
|
||||
for (int i = 0; i < d->weightsystems.nr; ++i) {
|
||||
const weightsystem_t &ws = d->weightsystems.weightsystems[i];
|
||||
tokenize(QString(ws.description), res);
|
||||
}
|
||||
for (auto &ws: d->weightsystems)
|
||||
tokenize(QString::fromStdString(ws.description), res);
|
||||
// TODO: We should tokenize all dive-sites and trips first and then
|
||||
// take the tokens from a cache.
|
||||
if (d->dive_site) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue