From e68ca65e9e0a1675a13e607a99f318ce5958c7e9 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 3 Aug 2018 18:23:40 +0200 Subject: Unify interfaces for gui --- generic/main.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'generic/main.cc') diff --git a/generic/main.cc b/generic/main.cc index 3b8b3fe6..8653da01 100644 --- a/generic/main.cc +++ b/generic/main.cc @@ -90,7 +90,8 @@ int main(int argc, char *argv[]) return 1; } - std::unique_ptr ctx = std::unique_ptr(new Context(ArchArgs{})); + ArchArgs chipArgs{}; + std::unique_ptr ctx = std::unique_ptr(new Context(chipArgs)); if (vm.count("verbose")) { ctx->verbose = true; @@ -107,7 +108,7 @@ int main(int argc, char *argv[]) #ifndef NO_GUI if (vm.count("gui")) { Application a(argc, argv); - MainWindow w(std::move(ctx)); + MainWindow w(std::move(ctx), chipArgs); w.show(); return a.exec(); -- cgit v1.2.3