gdb: remove unnecessary call to std::string constructor
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 11 May 2023 17:33:51 +0000 (13:33 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 12 May 2023 18:50:09 +0000 (14:50 -0400)
commitefe2296bde30c22124ed31b70b7d860339927471
tree67e79dd4038aae3ebb3113b83512b9ef05af6788
parent9c0fb73485cb2c90bb10cb4d3cf1d27e36f9ff01
gdb: remove unnecessary call to std::string constructor

I spotted this explicit call to std::string, which creates an
unnecessary temporary extra std::string, while calling emplace_back.
I'm not sure if it has any impact in an optimized build, maybe the
compiler elides it.  But still, it's unnecessary.

Change-Id: I873337ea91db29ac06267aff8fc12dcf52824cac
Approved-By: Tom Tromey <tom@tromey.com>
gdb/cli/cli-decode.c