aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-08 19:52:13 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-08 19:52:13 (GMT)
commitdc5a105c3e79e8ede296e22217e7406cf24e9495 (patch)
treee7759d602f2a685157883c782377fb126ce6bc0b
parent7a149626e60ef089ab3dcdd9b4fceb07250f8e13 (diff)
downloadfluxbox_pavel-dc5a105c3e79e8ede296e22217e7406cf24e9495.zip
fluxbox_pavel-dc5a105c3e79e8ede296e22217e7406cf24e9495.tar.bz2
fixed code duplication
-rw-r--r--src/WindowState.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/WindowState.cc b/src/WindowState.cc
index d062907..6632b66 100644
--- a/src/WindowState.cc
+++ b/src/WindowState.cc
@@ -104,11 +104,7 @@ int WindowState::getDecoMaskFromString(const std::string &str_label) {
104 return DECOR_TAB; 104 return DECOR_TAB;
105 105
106 int mask = -1; 106 int mask = -1;
107 int tmp; 107 FbTk::StringUtil::extractNumber(str_label, mask);
108 errno = 0;
109 tmp = strtol(str_label.c_str(), NULL, 0);
110 if (errno == 0)
111 mask = tmp;
112 108
113 return mask; 109 return mask;
114} 110}