[pushed:,r15-4806] diagnostics: use std::move in output_factory::handler ctor
Checks
Commit Message
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
Pushed to trunk as r15-4806-ga91569d47d68cf.
gcc/ChangeLog:
* opts-diagnostic.cc (output_factory::handler::handler): Use
std::move on name.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
---
gcc/opts-diagnostic.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -107,7 +107,7 @@ public:
class handler
{
public:
- handler (std::string name) : m_name (name) {}
+ handler (std::string name) : m_name (std::move (name)) {}
virtual ~handler () {}
const std::string &get_name () const { return m_name; }