Turn gdbpy_ref into a template
[deliverable/binutils-gdb.git] / gdb / python / py-arch.c
index 8d0ec3330cc332769b78d95f46d3aec2ff74a9f0..71d298973a018ea2df99132b3f6c6f8abf241946 100644 (file)
@@ -178,7 +178,7 @@ archpy_disassemble (PyObject *self, PyObject *args, PyObject *kw)
         }
     }
 
-  gdbpy_ref result_list (PyList_New (0));
+  gdbpy_ref<> result_list (PyList_New (0));
   if (result_list == NULL)
     return NULL;
 
@@ -193,7 +193,7 @@ archpy_disassemble (PyObject *self, PyObject *args, PyObject *kw)
        || (end_obj == NULL && count_obj == NULL && pc == start);)
     {
       int insn_len = 0;
-      gdbpy_ref insn_dict (PyDict_New ());
+      gdbpy_ref<> insn_dict (PyDict_New ());
 
       if (insn_dict == NULL)
        return NULL;
This page took 0.023828 seconds and 4 git commands to generate.