diff options
author | Mathias Gumz <akira@fluxbox.org> | 2015-01-21 08:53:54 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-01-21 08:53:54 (GMT) |
commit | 2b70480b9740c36c50b69d87954c645217cd65cf (patch) | |
tree | 2887365c564e686e6834fa8c0f4332f199977775 | |
parent | d3c960da99a9df0ff1086714cfa0d417ea783921 (diff) | |
download | fluxbox-2b70480b9740c36c50b69d87954c645217cd65cf.zip fluxbox-2b70480b9740c36c50b69d87954c645217cd65cf.tar.bz2 |
Fix compile errors with clang
-rw-r--r-- | src/ConfigMenu.hh | 4 | ||||
-rw-r--r-- | src/Screen.cc | 6 |
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 | ||
26 | class BScreen; | 26 | class BScreen; |
27 | class ScreenResource; | 27 | struct ScreenResource; |
28 | 28 | ||
29 | namespace FbTk{ | 29 | namespace 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 | ||
1409 | void BScreen::setupConfigmenu(FbTk::Menu &menu) { | 1409 | void 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(); |