aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-01-21 08:53:54 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-01-21 08:53:54 (GMT)
commit2b70480b9740c36c50b69d87954c645217cd65cf (patch)
tree2887365c564e686e6834fa8c0f4332f199977775
parentd3c960da99a9df0ff1086714cfa0d417ea783921 (diff)
downloadfluxbox-2b70480b9740c36c50b69d87954c645217cd65cf.zip
fluxbox-2b70480b9740c36c50b69d87954c645217cd65cf.tar.bz2
Fix compile errors with clang
-rw-r--r--src/ConfigMenu.hh4
-rw-r--r--src/Screen.cc6
2 files changed, 4 insertions, 6 deletions
diff --git a/src/ConfigMenu.hh b/src/ConfigMenu.hh
index b778f0f..5cb67f4 100644
--- a/src/ConfigMenu.hh
+++ b/src/ConfigMenu.hh
@@ -24,7 +24,7 @@
24 24
25 25
26class BScreen; 26class BScreen;
27class ScreenResource; 27struct ScreenResource;
28 28
29namespace FbTk{ 29namespace FbTk{
30 class Menu; 30 class Menu;
@@ -36,6 +36,8 @@ public:
36 36
37 // makes the setup() function-signature shorter 37 // makes the setup() function-signature shorter
38 struct SetupHelper { 38 struct SetupHelper {
39 SetupHelper(BScreen& _s, FbTk::ResourceManager& _rm, ScreenResource& _r) :
40 screen(_s), rm(_rm), resource(_r) { }
39 BScreen& screen; 41 BScreen& screen;
40 FbTk::ResourceManager& rm; 42 FbTk::ResourceManager& rm;
41 ScreenResource& resource; 43 ScreenResource& resource;
diff --git a/src/Screen.cc b/src/Screen.cc
index 666bb3e..1edcd93 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1408,11 +1408,7 @@ float BScreen::getYGap(int head) {
1408 1408
1409void BScreen::setupConfigmenu(FbTk::Menu &menu) { 1409void BScreen::setupConfigmenu(FbTk::Menu &menu) {
1410 1410
1411 struct ConfigMenu::SetupHelper sh; 1411 struct ConfigMenu::SetupHelper sh(*this, m_resource_manager, resource);
1412 sh.screen = *this;
1413 sh.rm = m_resource_manager;
1414 sh.resource = resource;
1415
1416 menu.removeAll(); 1412 menu.removeAll();
1417 ConfigMenu::setup(menu, sh); 1413 ConfigMenu::setup(menu, sh);
1418 menu.updateMenu(); 1414 menu.updateMenu();