diff options
author | Mathias Gumz <akira@fluxbox.org> | 2015-01-16 09:52:00 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-01-16 09:52:00 (GMT) |
commit | 772ec145952bfddc7888504f22859df1f24f8d5e (patch) | |
tree | 58356cf14f52792db6fda3c482a5b9865f711e56 /src/Screen.cc | |
parent | e37cad714c77b24e4421f5dc1b3d01fe685b637a (diff) | |
download | fluxbox-772ec145952bfddc7888504f22859df1f24f8d5e.zip fluxbox-772ec145952bfddc7888504f22859df1f24f8d5e.tar.bz2 |
Fix uninitialized variables; cosmetics
Note: I expect only modern compilers will hit the source of fluxbox. It
seems futile to guard stdlib headers while demanding <algorithm> etc. This
should trim down the noise in the source quite a bit.
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 6ddcded..b321d85 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -34,13 +34,6 @@ | |||
34 | #include "FocusControl.hh" | 34 | #include "FocusControl.hh" |
35 | #include "ScreenPlacement.hh" | 35 | #include "ScreenPlacement.hh" |
36 | 36 | ||
37 | // menu items | ||
38 | #include "FbTk/BoolMenuItem.hh" | ||
39 | #include "FbTk/IntMenuItem.hh" | ||
40 | #include "FbTk/MenuSeparator.hh" | ||
41 | #include "FocusModelMenuItem.hh" | ||
42 | #include "FbTk/RadioMenuItem.hh" | ||
43 | |||
44 | // menus | 37 | // menus |
45 | #include "ConfigMenu.hh" | 38 | #include "ConfigMenu.hh" |
46 | #include "FbMenu.hh" | 39 | #include "FbMenu.hh" |
@@ -101,15 +94,11 @@ class Toolbar {}; | |||
101 | #include <unistd.h> | 94 | #include <unistd.h> |
102 | #endif // HAVE_UNISTD_H | 95 | #endif // HAVE_UNISTD_H |
103 | 96 | ||
104 | #ifdef HAVE_STDARG_H | ||
105 | #include <stdarg.h> | ||
106 | #endif // HAVE_STDARG_H | ||
107 | |||
108 | #ifdef TIME_WITH_SYS_TIME | 97 | #ifdef TIME_WITH_SYS_TIME |
109 | #include <sys/time.h> | 98 | #include <sys/time.h> |
110 | #include <time.h> | 99 | #include <time.h> |
111 | #else // !TIME_WITH_SYS_TIME | 100 | #else // !TIME_WITH_SYS_TIME |
112 | #ifdef HAVE_SYS_TIME_H | 101 | #ifdef HAVE_SYS_TIME_H |
113 | #include <sys/time.h> | 102 | #include <sys/time.h> |
114 | #else // !HAVE_SYS_TIME_H | 103 | #else // !HAVE_SYS_TIME_H |
115 | #include <time.h> | 104 | #include <time.h> |
@@ -134,11 +123,8 @@ extern "C" { | |||
134 | #include <algorithm> | 123 | #include <algorithm> |
135 | #include <functional> | 124 | #include <functional> |
136 | #include <stack> | 125 | #include <stack> |
137 | #ifdef HAVE_CSTRING | 126 | #include <cstdarg> |
138 | #include <cstring> | 127 | #include <cstring> |
139 | #else | ||
140 | #include <string.h> | ||
141 | #endif | ||
142 | 128 | ||
143 | using std::cerr; | 129 | using std::cerr; |
144 | using std::endl; | 130 | using std::endl; |
@@ -205,7 +191,9 @@ BScreen::BScreen(FbTk::ResourceManager &rm, | |||
205 | const string &altscreenname, | 191 | const string &altscreenname, |
206 | int scrn, int num_layers) : | 192 | int scrn, int num_layers) : |
207 | m_layermanager(num_layers), | 193 | m_layermanager(num_layers), |
194 | root_colormap_installed(false), | ||
208 | m_image_control(0), | 195 | m_image_control(0), |
196 | m_current_workspace(0), | ||
209 | m_focused_windowtheme(new FbWinFrameTheme(scrn, ".focus", ".Focus")), | 197 | m_focused_windowtheme(new FbWinFrameTheme(scrn, ".focus", ".Focus")), |
210 | m_unfocused_windowtheme(new FbWinFrameTheme(scrn, ".unfocus", ".Unfocus")), | 198 | m_unfocused_windowtheme(new FbWinFrameTheme(scrn, ".unfocus", ".Unfocus")), |
211 | // the order of windowtheme and winbutton theme is important | 199 | // the order of windowtheme and winbutton theme is important |