aboutsummaryrefslogtreecommitdiff
path: root/src/IconButton.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-16 11:18:22 (GMT)
committersimonb <simonb>2006-04-16 11:18:22 (GMT)
commit553104ee1d53104fa0790a9793a7047c61dd073f (patch)
tree5ccc4968b10f604c05aaa6d3bb13fc206fab8faa /src/IconButton.cc
parent02aa83a59eb3d9e209449b38808635f9e293a17a (diff)
downloadfluxbox-553104ee1d53104fa0790a9793a7047c61dd073f.zip
fluxbox-553104ee1d53104fa0790a9793a7047c61dd073f.tar.bz2
fix all compiler warnings with -Wall
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r--src/IconButton.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc
index ab53196..d36987f 100644
--- a/src/IconButton.cc
+++ b/src/IconButton.cc
@@ -109,7 +109,7 @@ private:
109class WheelWorkspaceCmd : public FbTk::Command { 109class WheelWorkspaceCmd : public FbTk::Command {
110public: 110public:
111 explicit WheelWorkspaceCmd(const IconbarTool& tool, FluxboxWindow &win, const char* cmd) : 111 explicit WheelWorkspaceCmd(const IconbarTool& tool, FluxboxWindow &win, const char* cmd) :
112 m_win(win), m_tool(tool), m_cmd(CommandParser::instance().parseLine(cmd)){ } 112 m_win(win), m_cmd(CommandParser::instance().parseLine(cmd)), m_tool(tool) { }
113 void execute() { 113 void execute() {
114 114
115 switch(m_tool.wheelMode()) { 115 switch(m_tool.wheelMode()) {
@@ -245,7 +245,7 @@ void IconButton::update(FbTk::Subject *subj) {
245 FbTk::translateSize(orientation(), w, h); 245 FbTk::translateSize(orientation(), w, h);
246 int iconx = 1, icony = 1; 246 int iconx = 1, icony = 1;
247 unsigned int neww = w, newh = h; 247 unsigned int neww = w, newh = h;
248 if (newh > 2*icony) 248 if (newh > 2*static_cast<unsigned>(icony))
249 newh -= 2*icony; 249 newh -= 2*icony;
250 else 250 else
251 newh = 1; 251 newh = 1;