From 50ecf3334aeb0a54a95672cc7bb47cfcf54021e8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 16 Sep 2011 22:06:25 +0300 Subject: Fix compilation warnings. --- src/client.cpp | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 608bb5c8b..9447ce4bb 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1355,28 +1355,18 @@ void Client::optionChanged(const std::string &name) void Client::action(const gcn::ActionEvent &event) { - bool show(false); - std::string tab = ""; + std::string tab; if (event.getId() == "Setup") - { - show = true; - } + tab = ""; else if (event.getId() == "Video") - { - show = true; tab = "Video"; - } else if (event.getId() == "Themes") - { - show = true; tab = "Theme"; - } else if (event.getId() == "Perfomance") - { - show = true; tab = "Perfomance"; - } + else + return; if (setupWindow) { -- cgit v1.2.3-60-g2f50