Introduce and use make_unique_xstrdup
[deliverable/binutils-gdb.git] / gdb / breakpoint.c
index 054bb1b13da485a5ca89cacdc4fd2a51e68d1101..ae3dcc0a9525afdab89f1ad92576618ddbbc39f4 100644 (file)
@@ -941,10 +941,7 @@ condition_completer (struct cmd_list_element *cmd,
          xsnprintf (number, sizeof (number), "%d", b->number);
 
          if (strncmp (number, text, len) == 0)
-           {
-             gdb::unique_xmalloc_ptr<char> copy (xstrdup (number));
-             tracker.add_completion (std::move (copy));
-           }
+           tracker.add_completion (make_unique_xstrdup (number));
        }
 
       return;
This page took 0.025625 seconds and 4 git commands to generate.