aboutsummaryrefslogtreecommitdiff
path: root/src/Layer.hh
diff options
context:
space:
mode:
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 58fb5b6..da8f04c 100644
--- a/src/Layer.hh
+++ b/src/Layer.hh
@@ -54,7 +54,7 @@ public:
54 54
55 explicit Layer(int i) : m_num(i) {}; 55 explicit Layer(int i) : m_num(i) {};
56 56
57 static int getNumFromString(string &str) { 57 static int getNumFromString(const string &str) {
58 int tempnum = 0; 58 int tempnum = 0;
59 if (sscanf(str.c_str(), "%d", &tempnum) == 1) 59 if (sscanf(str.c_str(), "%d", &tempnum) == 1)
60 return tempnum; 60 return tempnum;