diff options
| author | Lioncash <mathew1800@gmail.com> | 2021-12-13 09:05:23 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2021-12-13 09:05:50 -0500 |
| commit | 54e164d9de57819ee3d3b9901e24a9e184e2804b (patch) | |
| tree | e732bb3b2062562c031ea54937514ca34ab6e6b1 /src/input_common/input_engine.h | |
| parent | d62545828a800f14e448a719dcbb1879f190b192 (diff) | |
input_engine: std::move engine name where applicable
We can allow the name to be moved into, allowing allocations to be
avoided.
Diffstat (limited to 'src/input_common/input_engine.h')
| -rw-r--r-- | src/input_common/input_engine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/input_engine.h b/src/input_common/input_engine.h index 44accd0bea..b21adfabfa 100644 --- a/src/input_common/input_engine.h +++ b/src/input_common/input_engine.h @@ -102,7 +102,7 @@ struct InputIdentifier { class InputEngine { public: - explicit InputEngine(const std::string& input_engine_) : input_engine(input_engine_) {} + explicit InputEngine(std::string input_engine_) : input_engine{std::move(input_engine_)} {} virtual ~InputEngine() = default; |
