fixed code duplication

This commit is contained in:
Mathias Gumz 2010-09-08 21:52:13 +02:00
parent 7a149626e6
commit dc5a105c3e

View file

@ -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;
}