Change install_breakpoint to take a std::unique_ptr
[deliverable/binutils-gdb.git] / gdb / break-catch-throw.c
index 5318e5f9a653eec49dc720ed13161ec4f2e980f8..b5322fc8fa3fc3f7d3219a31e03634439048f67e 100644 (file)
@@ -387,8 +387,7 @@ handle_gnu_v3_exceptions (int tempflag, std::string &&except_rx,
 
   re_set_exception_catchpoint (cp.get ());
 
-  install_breakpoint (0, cp.get (), 1);
-  cp.release ();
+  install_breakpoint (0, std::move (cp), 1);
 }
 
 /* Look for an "if" token in *STRING.  The "if" token must be preceded
This page took 0.025358 seconds and 4 git commands to generate.