From 1e5b276394ef3fc6d91df9121a90458662a7b75c Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Mon, 14 Oct 2024 17:42:29 +0200 Subject: make View instantiate its own controller --- View.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'View.cpp') diff --git a/View.cpp b/View.cpp index 8ca7d94..c269643 100644 --- a/View.cpp +++ b/View.cpp @@ -4,7 +4,7 @@ #include "View.h" #include "ViewController.h" -View::View(ViewController & vc) : controller(vc) { +View::View(Museum & m) : controller(m) { this->worker = new std::thread(&View::work, this); } -- cgit v1.2.3