diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-14 21:39:24 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-14 21:43:03 +0100 |
commit | d3b86b83f3a9d64cc0c7b9562a2ad8ae37dd16f5 (patch) | |
tree | ea13f51d58cbd535aa6504fe5456cf271978645a /opentrack | |
parent | e802d2de37d5f638a333388c277136afe983ba2a (diff) |
opentrack: use perfect forwarding in mk_window()
Diffstat (limited to 'opentrack')
-rw-r--r-- | opentrack/main-window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp index 0753fa69..89100cbd 100644 --- a/opentrack/main-window.cpp +++ b/opentrack/main-window.cpp @@ -559,8 +559,8 @@ static bool mk_window_common(std::unique_ptr<t>& d, F&& fun) template<typename t, typename... Args> static bool mk_window(std::unique_ptr<t>& place, Args&&... params) { - return mk_window_common(place, [&] { - return std::make_unique<t>(params...); + return mk_window_common(place, show, [&] { + return std::make_unique<t>(std::forward<Args>(params)...); }); } |