mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
Fix small style violation in py-value.c:get_field_type
gdb/ChangeLog:
* python/py-value.c (get_field_type): Remove unnecessary curly
braces for single-statement if block.
Tested on x86_64-linux.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2014-01-15 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
|
* python/py-value.c (get_field_type): Remove unnecessary curly
|
||||||
|
braces for single-statement if block.
|
||||||
|
|
||||||
2014-01-15 Joel Brobecker <brobecker@adacore.com>
|
2014-01-15 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* python/py-type.c (convert_field): Add missing empty line
|
* python/py-type.c (convert_field): Add missing empty line
|
||||||
|
|||||||
@@ -577,11 +577,9 @@ get_field_type (PyObject *field)
|
|||||||
ftype = type_object_to_type (ftype_obj);
|
ftype = type_object_to_type (ftype_obj);
|
||||||
Py_DECREF (ftype_obj);
|
Py_DECREF (ftype_obj);
|
||||||
if (ftype == NULL)
|
if (ftype == NULL)
|
||||||
{
|
PyErr_SetString (PyExc_TypeError,
|
||||||
PyErr_SetString (PyExc_TypeError,
|
_("'type' attribute of gdb.Field object is not a "
|
||||||
_("'type' attribute of gdb.Field object is not a "
|
"gdb.Type object."));
|
||||||
"gdb.Type object."));
|
|
||||||
}
|
|
||||||
|
|
||||||
return ftype;
|
return ftype;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user