1
0
Fork 0
mirror of https://github.com/subsurface/subsurface.git synced 2025-02-19 22:16:15 +00:00

Simplify: remove variable tags

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2016-01-11 16:29:49 -02:00 committed by Dirk Hohndel
parent 9f4bc61f62
commit 28f4e12725
2 changed files with 3 additions and 7 deletions
subsurface-core/subsurface-qt

View file

@ -36,11 +36,6 @@ static QString getFormattedCylinder(struct dive *dive, unsigned int idx)
DiveObjectHelper::DiveObjectHelper(struct dive *d) :
m_dive(d)
{
char buffer[256];
taglist_get_tagstring(d->tag_list, buffer, 256);
m_tags = QString(buffer);
int added = 0;
QString gas, gases;
for (int i = 0; i < MAX_CYLINDERS; i++) {
@ -169,7 +164,9 @@ QString DiveObjectHelper::notes() const
QString DiveObjectHelper::tags() const
{
return m_tags;
static char buffer[256];
taglist_get_tagstring(m_dive->tag_list, buffer, 256);
return QString(buffer);
}
QString DiveObjectHelper::gas() const

View file

@ -64,7 +64,6 @@ public:
private:
QString m_date;
QString m_time;
QString m_tags;
QString m_gas;
QStringList m_weights;
QStringList m_cylinders;