mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: turn struct dive string data into std::string
Much easier memory management! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2b3d2f1020
commit
3cb04d230b
34 changed files with 208 additions and 313 deletions
|
|
@ -119,10 +119,10 @@ static void tokenize(QString s, std::vector<QString> &res)
|
|||
static std::vector<QString> getWords(const dive *d)
|
||||
{
|
||||
std::vector<QString> res;
|
||||
tokenize(QString(d->notes), res);
|
||||
tokenize(QString(d->diveguide), res);
|
||||
tokenize(QString(d->buddy), res);
|
||||
tokenize(QString(d->suit), res);
|
||||
tokenize(QString::fromStdString(d->notes), res);
|
||||
tokenize(QString::fromStdString(d->diveguide), res);
|
||||
tokenize(QString::fromStdString(d->buddy), res);
|
||||
tokenize(QString::fromStdString(d->suit), res);
|
||||
for (const divetag *tag: d->tags)
|
||||
tokenize(QString::fromStdString(tag->name), res);
|
||||
for (auto &cyl: d->cylinders)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue