diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; } |