summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/timeparameter.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2023-01-29 06:53:43 +1100
committer Vas Crabb <vas@vastheman.com>2023-01-29 06:53:43 +1100
commiteaa43879cd2ae2e4c7bf7d685e8650a32277eea7 (patch)
tree598d9eab839851d279ab68cdbdf778ad4f3cf38a /src/osd/modules/render/bgfx/timeparameter.cpp
parent5671484fc87fc11b536a0b0f6cb0efb1e680d489 (diff)
render/bgfx: Got rid of a lot of unnecessary object copying during setup.
Diffstat (limited to 'src/osd/modules/render/bgfx/timeparameter.cpp')
-rw-r--r--src/osd/modules/render/bgfx/timeparameter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/osd/modules/render/bgfx/timeparameter.cpp b/src/osd/modules/render/bgfx/timeparameter.cpp
index cbcd56c8e6e..bc01bb33b61 100644
--- a/src/osd/modules/render/bgfx/timeparameter.cpp
+++ b/src/osd/modules/render/bgfx/timeparameter.cpp
@@ -8,8 +8,10 @@
#include "timeparameter.h"
-bgfx_time_parameter::bgfx_time_parameter(std::string name, parameter_type type, double limit)
- : bgfx_parameter(name, type)
+#include <utility>
+
+bgfx_time_parameter::bgfx_time_parameter(std::string &&name, parameter_type type, double limit)
+ : bgfx_parameter(std::move(name), type)
, m_current_time(0)
, m_limit(limit)
{