From d40caaaa31f94ed006859ee1437880d055c9dc45 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 7 Nov 2015 22:32:19 +0200 Subject: 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 = ' 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 --- desktop-widgets/divelogimportdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop-widgets/divelogimportdialog.cpp') 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) { -- cgit v1.2.3-70-g09d2