App: Replace C cast
This commit is contained in:
committed by
Chris Hennes
parent
78cc184d50
commit
9ccb9eecb2
@@ -247,7 +247,7 @@ PyObject* PropertyContainerPy::setPropertyStatus(PyObject *args)
|
||||
bool value = true;
|
||||
if (item.isString()) {
|
||||
const auto &statusMap = getStatusMap();
|
||||
auto v = (std::string)Py::String(item);
|
||||
auto v = static_cast<std::string>(Py::String(item));
|
||||
if(v.size()>1 && v[0] == '-') {
|
||||
value = false;
|
||||
v = v.substr(1);
|
||||
|
||||
Reference in New Issue
Block a user