diff options
author | Lancelot Six <lancelot.six@amd.com> | 2023-09-14 11:13:24 +0000 |
---|---|---|
committer | Lancelot Six <lancelot.six@amd.com> | 2023-11-21 11:52:35 +0000 |
commit | 6b62451ad08056f0ba02e192ec34ef67c4294ef4 (patch) | |
tree | 761f6e5a19e9e16d87ec955929aecd025166e335 /gdb/ui-out.c | |
parent | 1367eeec2cbd1bb14b89030e199d06fc676ffc49 (diff) | |
download | gdb-6b62451ad08056f0ba02e192ec34ef67c4294ef4.zip gdb-6b62451ad08056f0ba02e192ec34ef67c4294ef4.tar.gz gdb-6b62451ad08056f0ba02e192ec34ef67c4294ef4.tar.bz2 |
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
Diffstat (limited to 'gdb/ui-out.c')
-rw-r--r-- | gdb/ui-out.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c index defa8f9..e8653c6 100644 --- a/gdb/ui-out.c +++ b/gdb/ui-out.c @@ -236,7 +236,7 @@ void ui_out_table::append_header (int width, ui_align alignment, internal_error (_("table header must be specified after table_begin and " "before table_body.")); - auto header = gdb::make_unique<ui_out_hdr> (m_headers.size () + 1, + auto header = std::make_unique<ui_out_hdr> (m_headers.size () + 1, width, alignment, col_name, col_hdr); @@ -328,7 +328,7 @@ ui_out::current_level () const void ui_out::push_level (ui_out_type type) { - auto level = gdb::make_unique<ui_out_level> (type); + auto level = std::make_unique<ui_out_level> (type); m_levels.push_back (std::move (level)); } |