From eb1e02fd05688c28686a02f197c5e7cb0a5d6a27 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 6 Sep 2017 17:18:23 -0600 Subject: Use std::vector in add_using_directive This changes add_using_directive to accept a std::vector and then changes the callers. This allows removing a cleanup. ChangeLog 2017-09-09 Tom Tromey * namespace.h (add_using_directive): Update. * namespace.c (add_using_directive): Change type of excludes to std::vector. * dwarf2read.c (read_import_statement): Use std::vector. (read_namespace): Update. * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update. --- gdb/namespace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/namespace.h') diff --git a/gdb/namespace.h b/gdb/namespace.h index 75ae030..6804582 100644 --- a/gdb/namespace.h +++ b/gdb/namespace.h @@ -111,7 +111,7 @@ extern void add_using_directive (struct using_direct **using_directives, const char *src, const char *alias, const char *declaration, - VEC (const_char_ptr) *excludes, + const std::vector &excludes, int copy_names, struct obstack *obstack); -- cgit v1.1