Module: sems
Branch: master
Commit: 34e87f07d85349e984e9050398f9f50bbbcdd076
URL: 
https://github.com/sems-server/sems/commit/34e87f07d85349e984e9050398f9f50bbbcdd076

Author: Mikko Lehto <[email protected]>
Committer: Mikko Lehto <[email protected]>
Date: 2016-02-15T23:14:18+02:00

AmArg: remove ignored type qualifier

---

Modified: core/AmArg.cpp
Modified: core/AmArg.h

---

Diff:  
https://github.com/sems-server/sems/commit/34e87f07d85349e984e9050398f9f50bbbcdd076.diff
Patch: 
https://github.com/sems-server/sems/commit/34e87f07d85349e984e9050398f9f50bbbcdd076.patch

---

diff --git a/core/AmArg.cpp b/core/AmArg.cpp
index 2dcbde8..7f404a2 100644
--- a/core/AmArg.cpp
+++ b/core/AmArg.cpp
@@ -472,7 +472,7 @@ string AmArg::print(const AmArg &a) {
   return "<UNKONWN TYPE>";
 }
 
-const int arg2int(const AmArg &a)
+int arg2int(const AmArg &a)
 {
   if (isArgInt(a)) return a.asInt();
   if (isArgBool(a)) return a.asBool();
diff --git a/core/AmArg.h b/core/AmArg.h
index 28dd2b5..f37a278 100644
--- a/core/AmArg.h
+++ b/core/AmArg.h
@@ -367,7 +367,7 @@ class AmArg
 // equality
 bool operator==(const AmArg& lhs, const AmArg& rhs);
 
-const int arg2int(const AmArg &a);
+int arg2int(const AmArg &a);
 string arg2str(const AmArg &a);
 
 #endif

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to