Fix several clazy issue:
* Suppress non-POD static [-Wclazy-non-pod-global-static] * Call to temporary is a no-op: [-Wclazy-writing-to-temporary] * Unused QString [-Wclazy-unused-non-trivial-variable]
This commit is contained in:
@@ -275,7 +275,9 @@ PyObject* DocumentPy::addObject(PyObject *args, PyObject *kwd)
|
||||
if (pyvp.hasAttr("__vobject__")) {
|
||||
pyvp.setAttr("__vobject__", pyftr.getAttr("ViewObject"));
|
||||
}
|
||||
pyftr.getAttr("ViewObject").setAttr("Proxy", pyvp);
|
||||
|
||||
Py::Object pyprx(pyftr.getAttr("ViewObject"));
|
||||
pyprx.setAttr("Proxy", pyvp);
|
||||
return Py::new_reference_to(pyftr);
|
||||
}
|
||||
catch (Py::Exception& e) {
|
||||
|
||||
Reference in New Issue
Block a user