fixed code duplication
This commit is contained in:
parent
7a149626e6
commit
dc5a105c3e
1 changed files with 1 additions and 5 deletions
|
@ -104,11 +104,7 @@ int WindowState::getDecoMaskFromString(const std::string &str_label) {
|
||||||
return DECOR_TAB;
|
return DECOR_TAB;
|
||||||
|
|
||||||
int mask = -1;
|
int mask = -1;
|
||||||
int tmp;
|
FbTk::StringUtil::extractNumber(str_label, mask);
|
||||||
errno = 0;
|
|
||||||
tmp = strtol(str_label.c_str(), NULL, 0);
|
|
||||||
if (errno == 0)
|
|
||||||
mask = tmp;
|
|
||||||
|
|
||||||
return mask;
|
return mask;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue