aboutsummaryrefslogtreecommitdiff
path: root/gdb/d-namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/d-namespace.c')
-rw-r--r--gdb/d-namespace.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/d-namespace.c b/gdb/d-namespace.c
index 0bcd75d..b5e046e 100644
--- a/gdb/d-namespace.c
+++ b/gdb/d-namespace.c
@@ -1,6 +1,6 @@
/* Helper routines for D support in GDB.
- Copyright (C) 2014-2024 Free Software Foundation, Inc.
+ Copyright (C) 2014-2025 Free Software Foundation, Inc.
This file is part of GDB.
@@ -362,7 +362,6 @@ d_lookup_symbol_imports (const char *scope, const char *name,
const struct block *block,
const domain_search_flags domain)
{
- struct using_direct *current;
struct block_symbol sym;
/* First, try to find the symbol in the given module. */
@@ -375,9 +374,7 @@ d_lookup_symbol_imports (const char *scope, const char *name,
the module we're searching in, see if we can find a match by
applying them. */
- for (current = block->get_using ();
- current != NULL;
- current = current->next)
+ for (using_direct *current : block->get_using ())
{
const char **excludep;