Introduce and use make_unique_xstrdup
[deliverable/binutils-gdb.git] / gdb / linespec.c
index f418e03b774531a8af0b0c16090f378b4fad3e81..f0afe1b4ca145d7d65c0fd0bacf03b00d9be7bb1 100644 (file)
@@ -555,7 +555,7 @@ copy_token_string (linespec_token token)
   const char *str, *s;
 
   if (token.type == LSTOKEN_KEYWORD)
-    return gdb::unique_xmalloc_ptr<char> (xstrdup (LS_TOKEN_KEYWORD (token)));
+    return make_unique_xstrdup (LS_TOKEN_KEYWORD (token));
 
   str = LS_TOKEN_STOKEN (token).ptr;
   s = remove_trailing_whitespace (str, str + LS_TOKEN_STOKEN (token).length);
This page took 0.024498 seconds and 4 git commands to generate.