From 3dcf21babe03cee5080a25e787e1d7e72124288e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 22 Sep 2012 01:34:49 +0300 Subject: Add final keyword to most classes. --- src/gui/setup_theme.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/gui/setup_theme.cpp') diff --git a/src/gui/setup_theme.cpp b/src/gui/setup_theme.cpp index ddfd52291..4a8a1f296 100644 --- a/src/gui/setup_theme.cpp +++ b/src/gui/setup_theme.cpp @@ -52,7 +52,7 @@ const char* ACTION_HELP_FONT = "help font"; const char* ACTION_SECURE_FONT = "secure font"; const char* ACTION_JAPAN_FONT = "japan font"; -class ThemesModel : public NamesModel +class ThemesModel final : public NamesModel { public: ThemesModel() : @@ -66,7 +66,7 @@ public: { } }; -class FontsModel : public NamesModel +class FontsModel final : public NamesModel { public: FontsModel() : @@ -94,7 +94,7 @@ const char *SIZE_NAME[maxFontSizes] = N_("Very huge (19)"), }; -class FontSizeChoiceListModel : public gcn::ListModel +class FontSizeChoiceListModel final : public gcn::ListModel { public: virtual ~FontSizeChoiceListModel() @@ -112,10 +112,9 @@ public: } }; -struct Language +struct Language final { std::string name; - std::string value; }; @@ -141,7 +140,7 @@ const Language LANG_NAME[langs_count] = {N_("Spanish (Castilian)"), "es_ES"} }; -class LangListModel : public gcn::ListModel +class LangListModel final : public gcn::ListModel { public: virtual ~LangListModel() -- cgit v1.2.3-70-g09d2