Base: Units: return std::string
This commit is contained in:
committed by
Yorik van Havre
parent
24f4deef70
commit
379d7ea9d5
@@ -221,6 +221,5 @@ PyObject* UnitsApi::sToNumber(PyObject* /*self*/, PyObject* args)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
QString string = toNumber(value, qf);
|
||||
return Py::new_reference_to(Py::String(string.toStdString()));
|
||||
return Py::new_reference_to(Py::String(toNumber(value, qf)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user