aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-11-07 22:32:19 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-11-07 22:32:19 +0200
commitd40caaaa31f94ed006859ee1437880d055c9dc45 (patch)
tree9ed8d704654c376890eda7f80a36a88e25be5af1 /desktop-widgets
parent9f7c26cb386a7d061a440829e4b801ea6d629f97 (diff)
downloadsubsurface-d40caaaa31f94ed006859ee1437880d055c9dc45.tar.gz
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>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/divelogimportdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/divelogimportdialog.cpp b/desktop-widgets/divelogimportdialog.cpp
index 025d181d1..5747f3652 100644
--- a/desktop-widgets/divelogimportdialog.cpp
+++ b/desktop-widgets/divelogimportdialog.cpp
@@ -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)
{