diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-01-06 12:47:53 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-10 02:37:03 +0900 |
commit | e9dcac7514e3e61a1259fdd0e011e9a9b8093e54 (patch) | |
tree | 5519249fc2aa31c7daa2cd7c008647d45beaf2c9 /commands/command_divesite.cpp | |
parent | daf3821fcceda2407bfff0a11ed2412401d05333 (diff) | |
download | subsurface-e9dcac7514e3e61a1259fdd0e011e9a9b8093e54.tar.gz |
code cleanup: replace use of toStdVector()
Frankly, I find the old API easier...
Also, replace toList() with values()
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'commands/command_divesite.cpp')
-rw-r--r-- | commands/command_divesite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/command_divesite.cpp b/commands/command_divesite.cpp index 45d0abcaf..47c46f84e 100644 --- a/commands/command_divesite.cpp +++ b/commands/command_divesite.cpp @@ -131,7 +131,7 @@ void ImportDiveSites::undo() sitesToAdd = removeDiveSites(sitesToRemove); } -DeleteDiveSites::DeleteDiveSites(const QVector<dive_site *> &sites) : sitesToRemove(sites.toStdVector()) +DeleteDiveSites::DeleteDiveSites(const QVector<dive_site *> &sites) : sitesToRemove(std::vector<dive_site *>(sites.begin(),sites.end())) { setText(tr("delete %n dive site(s)", "", sites.size())); } |