From d3b86b83f3a9d64cc0c7b9562a2ad8ae37dd16f5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 14 Dec 2021 21:39:24 +0100 Subject: opentrack: use perfect forwarding in mk_window() --- opentrack/main-window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opentrack') 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& d, F&& fun) template static bool mk_window(std::unique_ptr& place, Args&&... params) { - return mk_window_common(place, [&] { - return std::make_unique(params...); + return mk_window_common(place, show, [&] { + return std::make_unique(std::forward(params)...); }); } -- cgit v1.2.3