Introduce and use make_unique_xstrdup
[external/binutils.git] / gdb / compile / compile-cplus-types.c
index 6923930..d7aef26 100644 (file)
@@ -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.  */