diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-06 17:18:23 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-09 14:10:51 -0600 |
commit | eb1e02fd05688c28686a02f197c5e7cb0a5d6a27 (patch) | |
tree | ca15494cfc7a6c4c4a4addd3f67277249a682fd8 /gdb/namespace.h | |
parent | 0fc21fd8cf92de78c3c383378e70a2955e2631c3 (diff) | |
download | gdb-eb1e02fd05688c28686a02f197c5e7cb0a5d6a27.zip gdb-eb1e02fd05688c28686a02f197c5e7cb0a5d6a27.tar.gz gdb-eb1e02fd05688c28686a02f197c5e7cb0a5d6a27.tar.bz2 |
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 <tom@tromey.com>
* 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.
Diffstat (limited to 'gdb/namespace.h')
-rw-r--r-- | gdb/namespace.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<const char *> &excludes, int copy_names, struct obstack *obstack); |