diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-19 16:07:30 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-20 11:53:55 +0100 |
commit | 17b44320607e89d4914736bcb2978271f410deb9 (patch) | |
tree | a857aed36799c8e2c74e16591c86bd56a225c8d1 /variant/default/main-window.cpp | |
parent | 11b3fff51e39cd98c62b0b59fe95aa51f8b30627 (diff) |
remove mistaken usages of std::forward
I originally mistaken what the function did.
Diffstat (limited to 'variant/default/main-window.cpp')
-rw-r--r-- | variant/default/main-window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/variant/default/main-window.cpp b/variant/default/main-window.cpp index 0c0a7a8f..1b681abc 100644 --- a/variant/default/main-window.cpp +++ b/variant/default/main-window.cpp @@ -643,7 +643,7 @@ bool main_window::mk_window_common(std::unique_ptr<t>& d, F&& ctor) template<typename t, typename... Args> inline bool main_window::mk_window(std::unique_ptr<t>& place, Args&&... params) { - return mk_window_common(place, [&]() { return new t(std::forward<Args>(params)...); }); + return mk_window_common(place, [&]() { return new t(params...); }); } template<typename t> |