Change the signature of constructLocationTags

We actually want to be able to pass a specific divesite structure
and not have it look that up by uuid.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-10-02 23:09:09 -07:00
parent b96633d3e9
commit ed78aeade0
4 changed files with 4 additions and 5 deletions

View file

@ -2,10 +2,9 @@
#include "divesite.h"
#include "pref.h"
QString constructLocationTags(uint32_t ds_uuid)
QString constructLocationTags(struct dive_site *ds)
{
QString locationTag;
struct dive_site *ds = get_dive_site_by_uuid(ds_uuid);
if (!ds || !ds->taxonomy.nr)
return locationTag;