mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
9f7c26cb38
commit
d40caaaa31
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ const DiveLogImportDialog::CSVAppConfig DiveLogImportDialog::CSVApps[CSVAPPS] =
|
||||||
{ NULL, }
|
{ NULL, }
|
||||||
};
|
};
|
||||||
|
|
||||||
static enum {
|
enum Known {
|
||||||
MANUAL,
|
MANUAL,
|
||||||
APD,
|
APD,
|
||||||
APD2,
|
APD2,
|
||||||
|
@ -30,7 +30,7 @@ static enum {
|
||||||
SENSUS,
|
SENSUS,
|
||||||
SEABEAR,
|
SEABEAR,
|
||||||
SUBSURFACE
|
SUBSURFACE
|
||||||
} known;
|
};
|
||||||
|
|
||||||
ColumnNameProvider::ColumnNameProvider(QObject *parent) : QAbstractListModel(parent)
|
ColumnNameProvider::ColumnNameProvider(QObject *parent) : QAbstractListModel(parent)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue