diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:52:39 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:52:39 (GMT) |
commit | e169d33552c8e7070aa6e13da0187f2013b4cfc3 (patch) | |
tree | ae9e92c7e885791c7f47645184070cbcd441ab94 /src/Layer.hh | |
parent | c82e7c0080f8a5c14dcf95ec92dc42f59ea9dd8b (diff) | |
parent | 91ca3bc5c8e2b892a9a81b18246f72aba7deebfd (diff) | |
download | fluxbox_paul-e169d33552c8e7070aa6e13da0187f2013b4cfc3.zip fluxbox_paul-e169d33552c8e7070aa6e13da0187f2013b4cfc3.tar.bz2 |
Merge branch 'master' into to_push
Diffstat (limited to 'src/Layer.hh')
-rw-r--r-- | src/Layer.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Layer.hh b/src/Layer.hh index bbda950..da8f04c 100644 --- a/src/Layer.hh +++ b/src/Layer.hh | |||
@@ -25,6 +25,12 @@ | |||
25 | #include <string> | 25 | #include <string> |
26 | #include <cstdio> | 26 | #include <cstdio> |
27 | 27 | ||
28 | #ifdef HAVE_CSTRING | ||
29 | #include <cstring> | ||
30 | #else | ||
31 | #include <string.h> | ||
32 | #endif | ||
33 | |||
28 | using std::string; | 34 | using std::string; |
29 | 35 | ||
30 | /** | 36 | /** |
@@ -48,7 +54,7 @@ public: | |||
48 | 54 | ||
49 | explicit Layer(int i) : m_num(i) {}; | 55 | explicit Layer(int i) : m_num(i) {}; |
50 | 56 | ||
51 | static int getNumFromString(string &str) { | 57 | static int getNumFromString(const string &str) { |
52 | int tempnum = 0; | 58 | int tempnum = 0; |
53 | if (sscanf(str.c_str(), "%d", &tempnum) == 1) | 59 | if (sscanf(str.c_str(), "%d", &tempnum) == 1) |
54 | return tempnum; | 60 | return tempnum; |