From dc5a105c3e79e8ede296e22217e7406cf24e9495 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Wed, 8 Sep 2010 21:52:13 +0200 Subject: fixed code duplication --- src/WindowState.cc | 6 +----- 1 file changed, 1 insertion(+), 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) { 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; } -- cgit v0.11.2