Skip to content
Snippets Groups Projects
Commit e018648a authored by Enric Tejedor Saavedra's avatar Enric Tejedor Saavedra
Browse files

[Exp PyROOT] Replace explicit type by auto

parent b61a21b5
No related branches found
No related tags found
No related merge requests found
...@@ -255,7 +255,7 @@ PyObject *TryBranchLeafListOverload(int argc, PyObject *args) ...@@ -255,7 +255,7 @@ PyObject *TryBranchLeafListOverload(int argc, PyObject *args)
&PyInt_Type, &bufsize)) { &PyInt_Type, &bufsize)) {
auto treeProxy = (CPPInstance *)treeObj; auto treeProxy = (CPPInstance *)treeObj;
TTree *tree = (TTree *)GetClass(treeProxy)->DynamicCast(TTree::Class(), treeProxy->GetObject()); auto tree = (TTree *)GetClass(treeProxy)->DynamicCast(TTree::Class(), treeProxy->GetObject());
if (!tree) { if (!tree) {
PyErr_SetString(PyExc_TypeError, "TTree::Branch must be called with a TTree instance as first argument"); PyErr_SetString(PyExc_TypeError, "TTree::Branch must be called with a TTree instance as first argument");
return nullptr; return nullptr;
...@@ -320,7 +320,7 @@ PyObject *TryBranchPtrToPtrOverloads(int argc, PyObject *args) ...@@ -320,7 +320,7 @@ PyObject *TryBranchPtrToPtrOverloads(int argc, PyObject *args)
if (bIsMatch) { if (bIsMatch) {
auto treeProxy = (CPPInstance *)treeObj; auto treeProxy = (CPPInstance *)treeObj;
TTree *tree = (TTree *)GetClass(treeProxy)->DynamicCast(TTree::Class(), treeProxy->GetObject()); auto tree = (TTree *)GetClass(treeProxy)->DynamicCast(TTree::Class(), treeProxy->GetObject());
if (!tree) { if (!tree) {
PyErr_SetString(PyExc_TypeError, "TTree::Branch must be called with a TTree instance as first argument"); PyErr_SetString(PyExc_TypeError, "TTree::Branch must be called with a TTree instance as first argument");
return nullptr; return nullptr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment