aboutsummaryrefslogtreecommitdiff
path: root/src/Layer.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2009-10-01 19:16:46 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2009-10-01 19:16:46 (GMT)
commit261ba26d27c3a64a627b6f407e057da0d17b621c (patch)
treec01a497e688192e0a2049f7181b4cbb3f93fa0da /src/Layer.hh
parent57b6e5a778d597aa279ac72aac38a3b178221931 (diff)
downloadfluxbox-261ba26d27c3a64a627b6f407e057da0d17b621c.zip
fluxbox-261ba26d27c3a64a627b6f407e057da0d17b621c.tar.bz2
another little helper for FbTk::StringUtil: extractNumber()
Diffstat (limited to 'src/Layer.hh')
-rw-r--r--src/Layer.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Layer.hh b/src/Layer.hh
index 14054b0..9aaca0a 100644
--- a/src/Layer.hh
+++ b/src/Layer.hh
@@ -48,7 +48,7 @@ public:
48 static int getNumFromString(const std::string &str) { 48 static int getNumFromString(const std::string &str) {
49 int tempnum = 0; 49 int tempnum = 0;
50 std::string v = FbTk::StringUtil::toLower(str); 50 std::string v = FbTk::StringUtil::toLower(str);
51 if (sscanf(str.c_str(), "%d", &tempnum) == 1) 51 if (FbTk::StringUtil::extractNumber(str, tempnum))
52 return tempnum; 52 return tempnum;
53 if (v == "menu") 53 if (v == "menu")
54 return ::Layer::MENU; 54 return ::Layer::MENU;