projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduce and use make_unique_xstrdup
[external/binutils.git]
/
gdb
/
compile
/
compile-cplus-types.c
diff --git
a/gdb/compile/compile-cplus-types.c
b/gdb/compile/compile-cplus-types.c
index
6923930
..
d7aef26
100644
(file)
--- a/
gdb/compile/compile-cplus-types.c
+++ b/
gdb/compile/compile-cplus-types.c
@@
-65,7
+65,7
@@
compile_cplus_instance::decl_name (const char *natural)
if (name != nullptr)
return name;
- return
gdb::unique_xmalloc_ptr<char> (xstrdup (natural)
);
+ return
make_unique_xstrdup (natural
);
}
/* Get the access flag for the NUM'th field of TYPE. */