divelogimportdialog.cpp: declare an enum as type

'known' is a static variable which is not used.
by declaring 'enum Known', now there is a *type* which
enumerates the values.

Having 'static Known known = <something>' would then work,
but since there is no use of such a variable there is no point
of declaring it.

There is also no use of the 'Known' type itself and an anonymous
enum would work as well.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2015-11-07 22:32:19 +02:00
parent 9f7c26cb38
commit d40caaaa31

View file

@ -22,7 +22,7 @@ const DiveLogImportDialog::CSVAppConfig DiveLogImportDialog::CSVApps[CSVAPPS] =
{ NULL, }
};
static enum {
enum Known {
MANUAL,
APD,
APD2,
@ -30,7 +30,7 @@ static enum {
SENSUS,
SEABEAR,
SUBSURFACE
} known;
};
ColumnNameProvider::ColumnNameProvider(QObject *parent) : QAbstractListModel(parent)
{