fixed code duplication
Mathias Gumz akira at fluxbox dot org
1 files changed,
1 insertions(+),
5 deletions(-)
jump to
M
src/WindowState.cc
→
src/WindowState.cc
@@ -104,11 +104,7 @@ if (label == "tab")
return DECOR_TAB; int mask = -1; - int tmp; - errno = 0; - tmp = strtol(str_label.c_str(), NULL, 0); - if (errno == 0) - mask = tmp; + FbTk::StringUtil::extractNumber(str_label, mask); return mask; }