forked from Imagelibrary/binutils-gdb
gdb: Use C++17's std::make_unique instead of gdb::make_unique
gdb::make_unique is a wrapper around std::make_unique when compiled with C++17. Now that C++17 is required, use std::make_unique directly in the codebase, and remove gdb::make_unique. Change-Id: I80b615e46e4b7c097f09d78e579a9bdce00254ab Approved-By: Tom Tromey <tom@tromey.com> Approved-By: Pedro Alves <pedro@palves.net
This commit is contained in:
@@ -230,7 +230,7 @@ add_solib_catchpoint (const char *arg, bool is_load, bool is_temp, bool enabled)
|
||||
if (*arg == '\0')
|
||||
arg = nullptr;
|
||||
|
||||
auto c = gdb::make_unique<solib_catchpoint> (gdbarch, is_temp, nullptr,
|
||||
auto c = std::make_unique<solib_catchpoint> (gdbarch, is_temp, nullptr,
|
||||
is_load, arg);
|
||||
|
||||
c->enable_state = enabled ? bp_enabled : bp_disabled;
|
||||
|
||||
Reference in New Issue
Block a user