mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: port tag-list to C++
Also adds a new test, which tests merging of two tag-lists. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
640ecb345b
commit
f18acf6fb9
25 changed files with 195 additions and 227 deletions
|
@ -123,8 +123,8 @@ static std::vector<QString> getWords(const dive *d)
|
|||
tokenize(QString(d->diveguide), res);
|
||||
tokenize(QString(d->buddy), res);
|
||||
tokenize(QString(d->suit), res);
|
||||
for (const tag_entry *tag = d->tag_list; tag; tag = tag->next)
|
||||
tokenize(QString::fromStdString(tag->tag->name), res);
|
||||
for (const divetag *tag: d->tags)
|
||||
tokenize(QString::fromStdString(tag->name), res);
|
||||
for (auto &cyl: d->cylinders)
|
||||
tokenize(QString::fromStdString(cyl.type.description), res);
|
||||
for (auto &ws: d->weightsystems)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue