[pushed] Remove varobj_item typedef
Tom Tromey
tom@tromey.com
Tue Oct 20 21:29:33 GMT 2020
While working on some minor varobj cleanups, I noticed this obvious
one: the varobj_item typedef isn't redundant in C++, and so can be
removed.
gdb/ChangeLog
2020-10-20 Tom Tromey <tom@tromey.com>
* varobj-iter.h (struct varobj_item): Remove typedef.
---
gdb/ChangeLog | 4 ++++
gdb/varobj-iter.h | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdb/varobj-iter.h b/gdb/varobj-iter.h
index 0422492c6dd..240b686b256 100644
--- a/gdb/varobj-iter.h
+++ b/gdb/varobj-iter.h
@@ -19,14 +19,14 @@
/* A node or item of varobj, composed of the name and the value. */
-typedef struct varobj_item
+struct varobj_item
{
/* Name of this item. */
std::string name;
/* Value of this item. */
struct value *value;
-} varobj_item;
+};
struct varobj_iter_ops;
--
2.17.2
More information about the Gdb-patches
mailing list