Mercurial > hg > vampy
diff PyPlugin.cpp @ 66:5664fe298af2
Update to Python 2.7 and clean up the build (avoid using deprecated NumPy API, fix compiler warnings)
author | Chris Cannam |
---|---|
date | Mon, 17 Nov 2014 09:37:59 +0000 |
parents | c1e4f706ca9a |
children | 146d14ab15e7 |
line wrap: on
line diff
--- a/PyPlugin.cpp Wed Aug 06 16:02:25 2014 +0100 +++ b/PyPlugin.cpp Mon Nov 17 09:37:59 2014 +0000 @@ -310,7 +310,7 @@ } bool -PyPlugin::getBooleanFlag(char flagName[], bool defValue = false) const +PyPlugin::getBooleanFlag(const char flagName[], bool defValue = false) const { bool rValue = defValue; if (PyObject_HasAttrString(m_pyInstance,flagName)) @@ -333,7 +333,7 @@ } int -PyPlugin::getBinaryFlags(char flagName[], eVampyFlags defValue = vf_NULL) const +PyPlugin::getBinaryFlags(const char flagName[], eVampyFlags defValue = vf_NULL) const { int rValue = defValue; if (PyObject_HasAttrString(m_pyInstance,flagName)) @@ -429,7 +429,7 @@ } void -PyPlugin::typeErrorHandler(char *method, bool process) const +PyPlugin::typeErrorHandler(const char *method, bool process) const { bool strict = false; while (m_ti.error) {