]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use std::make_unique in more places
authorTom Tromey <tom@tromey.com>
Wed, 9 Oct 2024 01:31:51 +0000 (19:31 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 20 Oct 2024 16:13:05 +0000 (10:13 -0600)
commit40ae603e6e0fe21fd0c1677dcf4e137cf99c2ebe
tree37b815b09eb8c8da38cd0846cdc7cd9136149167
parent32dc367249e85ecb2449d4be8cafc8e3fc2f359f
Use std::make_unique in more places

I searched for spots using ".reset (new ...)" and replaced most of
these with std::make_unique.  I think this is a bit cleaner and more
idiomatic.

Regression tested on x86-64 Fedora 40.

Reviewed-By: Klaus Gerlicher<klaus.gerlicher@intel.com>
gdb/breakpoint.c
gdb/cli/cli-interp.c
gdb/dwarf2/cu.c
gdb/dwarf2/read.c
gdb/jit.c
gdb/osdata.c
gdb/parse.c
gdb/regcache-dump.c
gdb/remote.c
gdb/typeprint.c
gdb/ui-out.c