mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Merge pull request #11876 from ilovezfs:patch-1
This commit is contained in:
commit
117e97adac
@ -916,7 +916,7 @@ bool pyopencv_to(PyObject* obj, String& value, const char* name)
|
|||||||
(void)name;
|
(void)name;
|
||||||
if(!obj || obj == Py_None)
|
if(!obj || obj == Py_None)
|
||||||
return true;
|
return true;
|
||||||
char* str = PyString_AsString(obj);
|
const char* str = PyString_AsString(obj);
|
||||||
if(!str)
|
if(!str)
|
||||||
return false;
|
return false;
|
||||||
value = String(str);
|
value = String(str);
|
||||||
|
Loading…
Reference in New Issue
Block a user