Revert change in _get_type_name_with_pointer as this stopped the pointer marker being calculated correctly

This commit is contained in:
eve
2025-03-28 13:07:26 +00:00
parent f060e3b8ae
commit d648bd908d
+1 -1
View File
@@ -399,7 +399,7 @@ class Volshell(interfaces.plugins.PluginInterface):
a pointer otherwise it returns just the normal type name."""
pointer_marker = "*" * depth
try:
if isinstance(member_type, objects.Pointer):
if member_type.vol.object_class == objects.Pointer:
sub_member_type = member_type.vol.subtype
# follow at most MAX_DEREFERENCE_COUNT pointers. A guard against, hopefully unlikely, infinite loops
if depth < MAX_DEREFERENCE_COUNT: