aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index 9cc8ee8..d601165 100644
--- a/main.cpp
+++ b/main.cpp
@@ -12,7 +12,7 @@ int main(int argc, char** argv) {
View view { museum };
try {
- LoadFilesCommand(museum).execute(argc - 1, &argv[1]);
+ LoadFilesCommand(museum, argc - 1, &argv[1]).execute();
} catch (Exception & e) {
printf("%s\n", e.what());
return EXIT_FAILURE; // invalid files on start cause exit
@@ -20,8 +20,9 @@ int main(int argc, char** argv) {
// Museum and View both create their own worker threads, so the main thread
// should remain to keep the view active.
- while (view.open)
- ;
+ while (view.open) {
+ continue;
+ }
return EXIT_SUCCESS;
}