aboutsummaryrefslogtreecommitdiff
path: root/src/IconButton.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-05-23 10:25:47 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-05-23 10:25:47 (GMT)
commitfbcdd34b223174a28ff712b7d03e56339fa2fe07 (patch)
treeda036effaeeb5ba7788f4b0403151aa864e9d16d /src/IconButton.cc
parentff9c68e247704bd1522ea7a2055b7fa4b2b0c568 (diff)
downloadfluxbox-fbcdd34b223174a28ff712b7d03e56339fa2fe07.zip
fluxbox-fbcdd34b223174a28ff712b7d03e56339fa2fe07.tar.bz2
mostly cosmetic fixes, mainly discovered by 'clang --analyze'
reordering of Resource-related stuff was because of "error: explicit specialization of 'getString' after instantiation" complaints.
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r--src/IconButton.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc
index 320918c..0a50661 100644
--- a/src/IconButton.cc
+++ b/src/IconButton.cc
@@ -189,8 +189,10 @@ void IconButton::refreshEverything(bool setup) {
189 unsigned int w = width(); 189 unsigned int w = width();
190 unsigned int h = height(); 190 unsigned int h = height();
191 FbTk::translateSize(orientation(), w, h); 191 FbTk::translateSize(orientation(), w, h);
192 int iconx = 1, icony = 1; 192 int iconx = 1;
193 unsigned int neww = w, newh = h; 193 int icony = 1;
194 unsigned int neww;
195 unsigned int newh = h;
194 if (newh > 2*static_cast<unsigned>(icony)) 196 if (newh > 2*static_cast<unsigned>(icony))
195 newh -= 2*icony; 197 newh -= 2*icony;
196 else 198 else