c++ needs const char * for static strings

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9326 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-08-20 01:12:23 +00:00
parent 3a67cbf4fd
commit bf91ac1605
6 changed files with 10 additions and 10 deletions
@@ -6090,10 +6090,10 @@ SWIGINTERN PyObject *_wrap_CoreSession_hangup__SWIG_0(PyObject *SWIGUNUSEDPARM(s
arg1 = reinterpret_cast< CoreSession * >(argp1);
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_hangup" "', argument " "2"" of type '" "char *""'");
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession_hangup" "', argument " "2"" of type '" "char const *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
(arg1)->hangup(arg2);
(arg1)->hangup((char const *)arg2);
resultobj = SWIG_Py_Void();
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
@@ -6160,7 +6160,7 @@ SWIGINTERN PyObject *_wrap_CoreSession_hangup(PyObject *self, PyObject *args) {
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CoreSession_hangup'.\n"
" Possible C/C++ prototypes are:\n"
" hangup(CoreSession *,char *)\n"
" hangup(CoreSession *,char const *)\n"
" hangup(CoreSession *)\n");
return NULL;
}