summaryrefslogtreecommitdiffhomepage
path: root/variant/default
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-24 20:04:14 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-24 20:04:14 +0100
commit79aa5c60b38da8403ec2550247143c8f4b45d323 (patch)
treea8e1d29657ebc48509afaef8c979c43437a81c0d /variant/default
parent21ce1398513a085d44ef89a9250541769ad11e46 (diff)
gui, opentrack: simplify std::function/unique_ptr usage
Reported by: ElDesalmado
Diffstat (limited to 'variant/default')
-rw-r--r--variant/default/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/variant/default/main.cpp b/variant/default/main.cpp
index 0038583b..2c1dc607 100644
--- a/variant/default/main.cpp
+++ b/variant/default/main.cpp
@@ -11,7 +11,7 @@
int main(int argc, char** argv)
{
- return run_application(argc, argv, [] { return new main_window; });
+ return run_application(argc, argv, [] { return std::make_unique<main_window>(); });
}
#if defined _MSC_VER